export declare const CURRENT_PROTOCOL_VERSION = 1; export declare const MAX_REQUEST_SIZE_BYTES = 4096; export type BrokerErrorCode = 'BROKER_UNAVAILABLE' | 'ACCESS_DENIED' | 'SECRET_NOT_FOUND' | 'INVALID_REQUEST' | 'INVALID_PROTOCOL' | 'REQUEST_TOO_LARGE' | 'CREDENTIAL_STORE_ERROR'; export interface BrokerRequest { version: number; operation: 'get' | 'set' | 'delete'; secret: string; value?: string; } export interface BrokerResponse { version: number; success: boolean; value?: string; error?: BrokerErrorCode; message?: string; } export declare class BrokerError extends Error { readonly code: BrokerErrorCode; constructor(code: BrokerErrorCode, message: string); } export declare function validateBrokerRequest(raw: unknown): BrokerRequest;