import { Result } from './result.mjs'; declare function wrap(promise: Promise): Promise>; declare function wrap(fn: (...args: A) => T | Promise): (...args: A) => Result | Promise>; export { wrap };