import { Maybe } from 'yummies/types'; type GetErrorTextEnhancer = (error: any) => string; type GetErrorTextFormatErrorFn = (error: Error) => string; /** * Universal function for transforming any errors into readable error text * * This function can be enhanced with custom handlers using: * - `getErrorText.unknownErrorText` * - `getErrorText.formatError` * - `getErrorText.enhance` */ declare const getErrorText: { (error: unknown): string; unknownErrorText: string; formatError: Maybe; enhance: Maybe; }; export { getErrorText };