import { FutureResult, Result } from './Result'; export type FallibleSync = ( ...args: A ) => Result; export type FallibleAsync = ( ...args: A ) => FutureResult; export type Fallible = | FallibleSync | FallibleAsync; export declare function FallibleSync( callback: (...args: A) => O ): FallibleSync; export declare function FallibleAsync( callback: (...args: A) => O | PromiseLike ): FallibleAsync; export declare const Fallible: typeof FallibleAsync; export default Fallible;