export type OmpAuthStorageMode = 'environment' | 'broker' | 'none' | 'omp-home'; interface ClosableAuthStorage { close(): void; } interface BrokerCredentials { readonly token?: string | undefined; readonly url?: string | undefined; } interface OmpAuthStoragePolicyOptions { readonly mode: OmpAuthStorageMode; readonly sourceDirectory?: unknown; readonly privateAgentDirectory: string; readonly privateDatabasePath: string; readonly brokerCachePath: string; readonly brokerCredentials?: BrokerCredentials; readonly sourceLabel: string; readonly createDatabase: (databasePath: string) => Promise; readonly discoverBroker: (agentDirectory: string, options: { cachePath: string; sourceLabel: string; }) => Promise; } /** * Snapshot only OMP's credential database. Configuration, broker token, and * other files in the source home are deliberately outside this policy. */ export declare function snapshotOmpAuthDatabase(sourceDirectory: unknown, privateDatabasePath: string): void; /** Open auth through one fail-closed policy shared by diagnostics and execution. */ export declare function openOmpAuthStorage(options: OmpAuthStoragePolicyOptions): Promise; export {}; //# sourceMappingURL=auth-policy.d.ts.map