import type { TauSdkRequestId } from "./types.js";
export type TauRpcErrorCode = "parse_error" | "invalid_request" | "method_not_found" | "invalid_params" | "busy" | "internal_error";
export type TauRpcError = {
    code: TauRpcErrorCode;
    message: string;
    data?: unknown;
};
export declare class TauSdkError extends Error {
    constructor(message: string, options?: ErrorOptions);
}
export declare class TauRpcResponseError extends TauSdkError {
    readonly code: TauRpcErrorCode;
    readonly requestId: TauSdkRequestId;
    readonly data?: unknown;
    constructor(options: {
        requestId: TauSdkRequestId;
        error: TauRpcError;
    });
}
export declare class TauTransportError extends TauSdkError {
    constructor(message: string, options?: ErrorOptions);
}
export declare class TauProcessError extends TauTransportError {
    readonly exitCode: number | null;
    readonly signal: NodeJS.Signals | null;
    readonly stderr: string;
    constructor(message: string, options?: {
        exitCode?: number | null;
        signal?: NodeJS.Signals | null;
        stderr?: string;
        cause?: unknown;
    });
}
