type TryCatchResult = { data: T; error: undefined; } | { data: undefined; error: unknown; }; /** @see {@link https://std.moeru.ai/docs/packages/std/utils/without-throw} */ declare const tryCatch: unknown>(fn: T) => TryCatchResult>; declare const tryCatchAsync: Promise>(fn: T) => Promise>>>; export { tryCatch, tryCatchAsync }; export type { TryCatchResult };