/** * Manages secret files in a secure directory * * Security features: * - Files stored on tmpfs (never touch disk) * - Directory has 0700 permissions (root only) * - Files have 0600 permissions (root only) * - Files are cleaned up on process exit */ export declare class SecretFileManager { private readonly secretsDir; private readonly writtenFiles; private cleanupRegistered; constructor(secretsDir?: string); /** * Initialize the secrets directory with secure permissions */ initialize(): void; /** * Write a secret to a file * Returns the path to the file */ writeSecret(name: string, value: string): string; /** * Read a secret from a file */ readSecret(name: string): string; /** * Delete a specific secret file */ deleteSecret(name: string): void; /** * Clean up all written secret files */ cleanup(): void; /** * Get the secrets directory path */ getSecretsDir(): string; /** * List all secret files */ listSecrets(): string[]; /** * Verify the secrets directory is on tmpfs (best effort) */ private verifyTmpfs; /** * Register cleanup handler for process exit */ private registerCleanup; } /** * Get the default SecretFileManager instance */ export declare function getSecretFileManager(): SecretFileManager; /** * Initialize the default SecretFileManager */ export declare function initializeSecretFiles(): SecretFileManager; //# sourceMappingURL=secret-file-manager.d.ts.map