11cb0ef41Sopenharmony_cideclare namespace InternalUtilBinding { 21cb0ef41Sopenharmony_ci class WeakReference<T> { 31cb0ef41Sopenharmony_ci constructor(value: T); 41cb0ef41Sopenharmony_ci get(): undefined | T; 51cb0ef41Sopenharmony_ci incRef(): void; 61cb0ef41Sopenharmony_ci decRef(): void; 71cb0ef41Sopenharmony_ci } 81cb0ef41Sopenharmony_ci} 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_cideclare function InternalBinding(binding: 'util'): { 111cb0ef41Sopenharmony_ci // PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES, defined in src/env_properties.h 121cb0ef41Sopenharmony_ci arrow_message_private_symbol: 1; 131cb0ef41Sopenharmony_ci contextify_context_private_symbol: 2; 141cb0ef41Sopenharmony_ci decorated_private_symbol: 3; 151cb0ef41Sopenharmony_ci napi_type_tag: 4; 161cb0ef41Sopenharmony_ci napi_wrapper: 5; 171cb0ef41Sopenharmony_ci untransferable_object_private_symbol: 6; 181cb0ef41Sopenharmony_ci exiting_aliased_Uint32Array: 7; 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ci kPending: 0; 211cb0ef41Sopenharmony_ci kFulfilled: 1; 221cb0ef41Sopenharmony_ci kRejected: 2; 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci getHiddenValue(object: object, index: number): any; 251cb0ef41Sopenharmony_ci setHiddenValue(object: object, index: number, value: any): boolean; 261cb0ef41Sopenharmony_ci getPromiseDetails(promise: any): undefined | [state: 0] | [state: 1 | 2, result: any]; 271cb0ef41Sopenharmony_ci getProxyDetails(proxy: any, fullProxy?: boolean): undefined | any | [target: any, handler: any]; 281cb0ef41Sopenharmony_ci previewEntries(object: object, slowPath?: boolean): undefined | any[] | [entries: any[], isKeyValue: boolean]; 291cb0ef41Sopenharmony_ci getOwnNonIndexProperties(object: object, filter: number): Array<string | symbol>; 301cb0ef41Sopenharmony_ci getConstructorName(object: object): string; 311cb0ef41Sopenharmony_ci getExternalValue(value: any): bigint; 321cb0ef41Sopenharmony_ci sleep(msec: number): void; 331cb0ef41Sopenharmony_ci isConstructor(fn: Function): boolean; 341cb0ef41Sopenharmony_ci arrayBufferViewHasBuffer(view: ArrayBufferView): boolean; 351cb0ef41Sopenharmony_ci propertyFilter: { 361cb0ef41Sopenharmony_ci ALL_PROPERTIES: 0; 371cb0ef41Sopenharmony_ci ONLY_WRITABLE: 1; 381cb0ef41Sopenharmony_ci ONLY_ENUMERABLE: 2; 391cb0ef41Sopenharmony_ci ONLY_CONFIGURABLE: 4; 401cb0ef41Sopenharmony_ci SKIP_STRINGS: 8; 411cb0ef41Sopenharmony_ci SKIP_SYMBOLS: 16; 421cb0ef41Sopenharmony_ci }; 431cb0ef41Sopenharmony_ci shouldAbortOnUncaughtToggle: [shouldAbort: 0 | 1]; 441cb0ef41Sopenharmony_ci WeakReference: typeof InternalUtilBinding.WeakReference; 451cb0ef41Sopenharmony_ci guessHandleType(fd: number): 'TCP' | 'TTY' | 'UDP' | 'FILE' | 'PIPE' | 'UNKNOWN'; 461cb0ef41Sopenharmony_ci toUSVString(str: string, start: number): string; 471cb0ef41Sopenharmony_ci}; 48