/**
 * Standard error codes for the protocol
 */
export declare const ErrorCodes: {
    readonly PARSE_ERROR: -32700;
    readonly INVALID_REQUEST: -32600;
    readonly METHOD_NOT_FOUND: -32601;
    readonly INVALID_PARAMS: -32602;
    readonly INTERNAL_ERROR: -32603;
    readonly USER_REJECTED: 4001;
    readonly WALLET_LOCKED: 4002;
    readonly WALLET_NOT_CONNECTED: 4003;
    readonly INSUFFICIENT_FUNDS: 4004;
    readonly INVALID_TRANSACTION: 4005;
    readonly POPUP_BLOCKED: 4006;
    readonly POPUP_CLOSED: 4007;
    readonly TIMEOUT: 4008;
    readonly NETWORK_ERROR: 4009;
    readonly ORIGIN_NOT_ALLOWED: 4010;
    readonly TRANSPORT_UNAVAILABLE: 4011;
    readonly FALLBACK_REQUIRED: 4012;
    readonly AUTHORIZATION_TIMEOUT: 4013;
    readonly STATE_MISMATCH: 4014;
    readonly CODE_REPLAY: 4015;
};
export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
/**
 * Base error class for 1Sat SDK
 */
export declare class OneSatError extends Error {
    readonly code: ErrorCode;
    readonly data?: unknown;
    constructor(code: ErrorCode, message: string, data?: unknown);
    toJSON(): {
        code: ErrorCode;
        message: string;
        data: unknown;
    };
}
export declare class UserRejectedError extends OneSatError {
    constructor(message?: string);
}
export declare class WalletLockedError extends OneSatError {
    constructor(message?: string);
}
export declare class WalletNotConnectedError extends OneSatError {
    constructor(message?: string);
}
export declare class InsufficientFundsError extends OneSatError {
    constructor(message?: string);
}
export declare class PopupBlockedError extends OneSatError {
    constructor(message?: string);
}
export declare class PopupClosedError extends OneSatError {
    constructor(message?: string);
}
export declare class TimeoutError extends OneSatError {
    constructor(message?: string);
}
export declare class TransportUnavailableError extends OneSatError {
    constructor(message?: string, data?: unknown);
}
export declare class FallbackRequiredError extends OneSatError {
    constructor(message?: string, data?: unknown);
}
export declare class AuthorizationTimeoutError extends OneSatError {
    constructor(message?: string, data?: unknown);
}
export declare class StateMismatchError extends OneSatError {
    constructor(message?: string, data?: unknown);
}
export declare class CodeReplayError extends OneSatError {
    constructor(message?: string, data?: unknown);
}
/**
 * Create an error from an error response
 */
export declare function fromErrorResponse(error: {
    code: number;
    message: string;
    data?: unknown;
}): OneSatError;
//# sourceMappingURL=errors.d.ts.map