import type { Resolvable } from './common-types.js'; import { TypedError } from 'typed-error'; export type MappingFunction = (a: T[], fn: (v: T) => Resolvable) => Promise>; export declare const mapSeries: (a: T[], fn: (v: T) => Resolvable) => Promise; export declare const settleMapSeries: MappingFunction; export declare const getMappingFn: (headers?: { prefer?: string | string[]; [key: string]: string | string[] | undefined; }) => MappingFunction; export declare const delay: (ms: number) => Promise; export declare const fromCallback: (resolver: (callback: (err: any, result?: T) => void) => void) => Promise; export declare class TimeoutError extends TypedError { } export declare const timeout: (promise: Promise, ms: number, msg?: string) => Promise;