/** * Safely extracts a message from a caught value that isn't guaranteed to be an `Error`. */ export declare const getErrorMessage: (error: unknown) => string; type asyncFunction = (...args: unknown[]) => Promise; /** * Wrap an async function so it prepends an error message on exceptions. * This helps locate errors. */ export declare const addAsyncErrorMessage: (asyncFunc: asyncFunction, message: string) => asyncFunction; export {};