import type { ListEncryptionKeysQueryDto } from '@n8n/api-types'; import { DeploymentKeyRepository, type DeploymentKey } from '@n8n/db'; import { Cipher, type CipherAlgorithm } from 'n8n-core'; type KeyInfo = { id: string; value: string; algorithm: string; }; export declare class KeyManagerService { private readonly deploymentKeyRepository; private readonly cipher; constructor(deploymentKeyRepository: DeploymentKeyRepository, cipher: Cipher); getActiveKey(): Promise; getKeyById(id: string): Promise; getLegacyKey(): Promise; bootstrapLegacyCbcKey(instanceEncryptionKey: string): Promise; bootstrapGcmKey(): Promise; listKeys(query: ListEncryptionKeysQueryDto): Promise<{ items: DeploymentKey[]; count: number; }>; rotateKey(): Promise; addKey(plaintextValue: string, algorithm: CipherAlgorithm, setAsActive?: boolean): Promise; setActiveKey(id: string): Promise; markInactive(id: string): Promise; } export {};