import WebSocket from 'ws'; import type { DynamicSecretsServerMessage } from './types.js'; /** * Initialize dynamic secrets service * Call this on agent startup before connecting WebSocket */ export declare function initializeDynamicSecrets(): void; /** * Get the agent's public key for registration */ export declare function getAgentPublicKey(): string; /** * Check if dynamic secrets is enabled * Returns true by default - can be disabled with ZNVAULT_AGENT_DYNAMIC_SECRETS=false */ export declare function isDynamicSecretsEnabled(): boolean; /** * Set the current WebSocket connection for sending responses */ export declare function setWebSocket(ws: WebSocket | null): void; /** * Handle an incoming dynamic secrets message from vault */ export declare function handleIncomingMessage(message: DynamicSecretsServerMessage): Promise; /** * Handle vault public key received during connection */ export declare function handleVaultPublicKey(publicKey: string): void; /** * Cleanup dynamic secrets resources * Call this on agent shutdown */ export declare function cleanupDynamicSecrets(): Promise; /** * Get capabilities to advertise to vault */ export declare function getDynamicSecretsCapabilities(): string[]; /** * Get metadata to send during registration */ export declare function getDynamicSecretsMetadata(): { publicKey?: string; }; //# sourceMappingURL=websocket-integration.d.ts.map