export declare function tryCatch(tryer: () => Target, catcher: ((exception: unknown) => Target)): Target; export declare function tryCatch(tryer: () => Target, catchallValue: Target): Target; /** * 未提供 `catcher` 或 `catchallValue` 的情况下,若 `tryer` 抛出异常,则返回 `undefined` */ export declare function tryCatch(tryer: () => Target): Target | undefined; export declare function tryCatch(tryer: () => void): void; //# sourceMappingURL=error.d.ts.map