export declare function run(fn: () => T): T; export type Result = { data: T; error?: undefined; } | { data?: undefined; error: E; }; /** * Many thanks to @m-tabaza for this utility... Kotlin vibes */ export declare function runCatching(callback: () => Promise): Promise>; export declare function runCatching(callback: () => T): Result; //# sourceMappingURL=run-catching.d.ts.map