export declare function guard<T>(f: () => T, opt?: {
    defaultValue?: T;
    onError?: (e: Error) => void;
}): T;
