export declare const SECRET_STORE_DIR_ENV = "SMARTPERFETTO_SECRET_STORE_DIR";
export declare const SECRET_STORE_MASTER_KEY_ENV = "SMARTPERFETTO_SECRET_STORE_MASTER_KEY";
export declare const SECRET_STORE_KEYRING_SERVICE_ENV = "SMARTPERFETTO_SECRET_STORE_KEYRING_SERVICE";
export declare const SECRET_STORE_KEYRING_ACCOUNT_ENV = "SMARTPERFETTO_SECRET_STORE_KEYRING_ACCOUNT";
export declare const SECRET_STORE_ALLOW_LOCAL_MASTER_KEY_ENV = "SMARTPERFETTO_SECRET_STORE_ALLOW_LOCAL_MASTER_KEY";
type SecretAlgorithm = 'libsodium-secretbox';
type MasterKeySource = 'env' | 'keyring' | 'local-dev-file';
export interface SecretStoreInfo {
    filePath: string;
    masterKeySource: MasterKeySource;
    algorithm: SecretAlgorithm;
}
export declare class LocalEncryptedSecretStore {
    private readonly dir;
    private readonly filePath;
    private readonly key;
    private readonly masterKeySource;
    constructor(dir?: string);
    info(): SecretStoreInfo;
    get(ref: string): Record<string, string>;
    put(ref: string, value: Record<string, string>): number;
    rotate(ref: string, value?: Record<string, string>): number;
    getVersion(ref: string): number | undefined;
    delete(ref: string): boolean;
    private writeEncrypted;
    private readFile;
    private encryptEntry;
    private migrateLegacyFile;
    private writeFile;
}
export {};
//# sourceMappingURL=localSecretStore.d.ts.map