import { Result } from './result'; export declare function attempt(fn: () => T): Result; export declare function attemptAsync(fn: () => Promise): Promise>;