export declare const pause: (duration: number) => Promise; export declare const mapObject: (object: { [k: string]: InputV; }, fn: (value: [string, InputV], index: number, array: Array<[string, InputV]>) => [number | string, OutputV]) => { [k: string]: OutputV; }; export declare const concatBuffers: (list: readonly Uint8Array[], totalLength?: number) => Buffer; /** * Object key type guard * @param key - Maybe object key * @param object - Object */ export declare function isKeyOfObject(key: string | number | symbol, object: T): key is keyof T; /** * Array item type guard * @param item - Maybe array item * @param array - Array */ export declare function isItemOfArray(item: any, array: readonly T[]): item is T; export declare function isAccountNotFoundError(error: Error): boolean; export type UnionToIntersection = (Union extends any ? (k: Union) => void : never) extends (k: infer Intersection) => void ? Intersection : never; export type Optional = Pick, K> & Omit; export declare function ensureError(error: unknown): asserts error is Error;