/** * wraps a promise and returns a tuple of [error, result] * @param p Promise * @returns [error, result] */ export declare const t: (p: Promise) => Promise<[any, T]>; /** Wraps a variable in a promise. If the variable is already a promise, it is left as-is */ export declare const toPromise: (t: T | Promise) => Promise;