import type { RpcErrorCode } from './rpc.js';
export type RpcErrorCarrier = {
    rpcErrorCode?: RpcErrorCode | string;
    message?: string;
};
export declare class RpcError extends Error {
    readonly rpcErrorCode: RpcErrorCode | string;
    constructor(message: string, rpcErrorCode: RpcErrorCode | string);
}
export declare function isRpcError(error: unknown): error is RpcError;
export declare function createRpcCallError(opts: {
    error: string;
    errorCode?: string | null | undefined;
}): Error;
export declare function readRpcErrorCode(error: unknown): string | undefined;
export declare function isRpcMethodNotAvailableError(error: unknown): boolean;
export declare function isRpcMethodNotFoundError(error: unknown): boolean;
//# sourceMappingURL=rpcErrors.d.ts.map