/** * @description * Use this helper to safely invoke a function and catch any errors that occur. */ export declare const attempt: (fn: () => TData) => { ok: boolean; result: TData; error: null; } | { ok: boolean; result: null; error: TError; };