import * as E from 'fp-ts/Either'; import * as O from 'fp-ts/Option'; declare type Either = E.Either; export declare const eitherToPromise: (e: Either) => Promise; export declare const optionToPromise: (o: O.Option, e?: unknown) => Promise; export declare const succeed: (a: A) => Promise; export declare const fail: (error?: unknown) => Promise; export declare const tryPromise: (p: Promise) => Promise>; export declare const getOrElse: (p: Promise, other: A) => Promise; export declare const setError: (p: Promise, error: unknown) => Promise; export declare const parMap: (input: readonly A[], p: (a: A) => Promise) => Promise; export declare const parMapRecord: (input: Record, p: (value: A, key: string) => Promise) => Promise>; export declare const filterMap: (input: A[], p: (a: A) => Promise) => Promise; export declare const poll: (fn: () => Promise, timeout: number, delay: number) => Promise; export {}; //# sourceMappingURL=PromiseUtils.d.ts.map