import type { Idl } from '@project-serum/anchor';
import type { PublicKey } from '@solana/web3.js';
export declare type ErrorCode = {
    code: string;
    message: string;
};
export declare const NATIVE_ERRORS: ErrorCode[];
export declare type ErrorOptions = {
    /** ProgramIdls in priority order */
    programIdls?: {
        idl: Idl;
        programId: PublicKey;
    }[];
    /** Additional errors by code */
    additionalErrors?: ErrorCode[];
};
export declare const handleError: (e: unknown, fallBackMessage?: string, options?: ErrorOptions) => string;
//# sourceMappingURL=errors.d.ts.map