import type { TFunction } from 'i18next'; import type { DisplayedError, ErrorNotification } from '../components/FunNotification/FunNotification'; export declare enum PendingQuoteMessage { PREPARING = 0, VERIFYING_PROVIDER = 1, ESTIMATING_GAS = 2, FINALIZING = 3 } export declare const getPendingQuoteMessageGenerator: (t: TFunction) => { [PendingQuoteMessage.PREPARING]: () => string; [PendingQuoteMessage.VERIFYING_PROVIDER]: (provider: string) => string; [PendingQuoteMessage.ESTIMATING_GAS]: () => string; [PendingQuoteMessage.FINALIZING]: () => string; }; declare enum QuoteApiErrorType { NO_ROUTE_FOUND_1 = 0, NO_ROUTE_FOUND_2 = 1, INSUFFICIENT_AMOUNT_GENERAL_1 = 2, INSUFFICIENT_AMOUNT_GENERAL_2 = 3, INSUFFICIENT_AMOUNT_FOR_BRDIGE_1 = 4, INSUFFICIENT_AMOUNT_FOR_BRDIGE_2 = 5, NO_ROUTE_FOUND_RELAY = 6 } export declare const getQuoteApiErrorDisplayInfo: (t: TFunction) => { [QuoteApiErrorType.NO_ROUTE_FOUND_1]: { check: string; display: ErrorNotification; }; [QuoteApiErrorType.NO_ROUTE_FOUND_2]: { check: string; display: ErrorNotification; }; [QuoteApiErrorType.NO_ROUTE_FOUND_RELAY]: { check: string; display: DisplayedError; }; [QuoteApiErrorType.INSUFFICIENT_AMOUNT_GENERAL_1]: { check: string; display: DisplayedError; }; [QuoteApiErrorType.INSUFFICIENT_AMOUNT_GENERAL_2]: { check: string; display: DisplayedError; }; [QuoteApiErrorType.INSUFFICIENT_AMOUNT_FOR_BRDIGE_1]: { check: string; display: DisplayedError; }; [QuoteApiErrorType.INSUFFICIENT_AMOUNT_FOR_BRDIGE_2]: { check: string; display: DisplayedError; }; }; export declare enum QuoteCustomErrorType { INSUFFICIENT_BALANCE_PRE_CHECK = 0, INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK = 1, INSUFFICIENT_BALANCE_POST_CHECK = 2, INSUFFICIENT_AMOUNT_POST_CHECK = 3 } export declare const getQuoteCustomErrorDisplayInfo: (t: TFunction) => { [QuoteCustomErrorType.INSUFFICIENT_BALANCE_PRE_CHECK]: { check: string; display: DisplayedError; }; [QuoteCustomErrorType.INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK]: { check: string; display: DisplayedError; }; [QuoteCustomErrorType.INSUFFICIENT_BALANCE_POST_CHECK]: { check: string; display: DisplayedError; }; [QuoteCustomErrorType.INSUFFICIENT_AMOUNT_POST_CHECK]: { check: string; display: DisplayedError; }; }; export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): DisplayedError; export {};