export type ProviderProtocolErrorCode = 'TOOL_PROTOCOL_ERROR' | 'SSE_DECODE_ERROR' | 'MALFORMED_RESPONSE' | 'MALFORMED_REQUEST' | 'SERVERTOOL_FOLLOWUP_FAILED' | 'SERVERTOOL_EMPTY_FOLLOWUP' | 'SERVERTOOL_TIMEOUT' | 'SERVERTOOL_HANDLER_FAILED';
export type ProviderErrorCategory = 'EXTERNAL_ERROR' | 'TOOL_ERROR' | 'INTERNAL_ERROR';
export interface ProviderProtocolErrorOptions {
    code: ProviderProtocolErrorCode;
    protocol?: string;
    providerType?: string;
    category?: ProviderErrorCategory;
    details?: Record<string, unknown>;
}
export declare class ProviderProtocolError extends Error {
    readonly code: ProviderProtocolErrorCode;
    readonly protocol?: string;
    readonly providerType?: string;
    readonly category: ProviderErrorCategory;
    readonly details?: Record<string, unknown>;
    constructor(message: string, options: ProviderProtocolErrorOptions);
}
