import { ErrResult, Result } from './types.js'; export declare function rTry(fn: (...args: Args) => never, ...args: Args): ErrResult; export declare function rTry(fn: () => Promise, ...args: Args): Promise>; export declare function rTry(fn: (...args: Args) => T, ...args: Args): Result; export declare function rTry(promise: Promise): Promise>; export declare function rTry(value: T): Result;