import { ErrorType, InputValidDryError, InputValidWalletError, QuoteSuccessDirectTransferError, QuoteSuccessTransferError } from './machine/errors';
import { Context } from './machine/context';
export declare class WidgetError extends Error {
    context: Context;
    _is_widget_error: boolean;
    constructor(message: string, meta?: {
        cause?: unknown;
        message?: string;
    });
}
export declare class MachineError<E extends ErrorType> extends WidgetError {
    data: E;
    constructor(data: E);
}
export declare class QuoteError extends MachineError<InputValidDryError | InputValidWalletError> {
    constructor(data: InputValidDryError | InputValidWalletError);
}
export declare class TransferError extends MachineError<QuoteSuccessTransferError | QuoteSuccessDirectTransferError> {
    constructor(data: QuoteSuccessTransferError | QuoteSuccessDirectTransferError);
}
export declare const isWidgetError: (error: unknown) => error is WidgetError;
