import { type Result, type AsyncResult } from './result.ts'; /** * Wraps a function in a try-catch and returns a Result or AsyncResult * - For synchronous functions: returns Result * - For async functions: returns AsyncResult * @param fn - Function to execute (sync or async) * @returns Result or AsyncResult containing the function's return value or error */ export declare function trycatch(fn: () => T): [T] extends [never] ? Result : [T] extends [PromiseLike] ? AsyncResult : Result; //# sourceMappingURL=trycatch.d.ts.map