export interface CredentialDirectoryWatcher { close(): void; on(event: "error", listener: (error: Error) => void): unknown; } export type CredentialDirectoryWatch = (directory: string, listener: (event: string, filename: string | Buffer | null) => void) => CredentialDirectoryWatcher; export interface CredentialStoreObserver { close(): void; } /** * Observe the shared credential file through its directory so an in-place * write or replacement produces the same refresh signal. This deliberately * has no polling/retry fallback. A missing directory returns no observer so * the caller can arm it after a known in-process credential write. */ export declare function observeCredentialStore(filePath: string, onChange: () => void | Promise, options?: { watchDirectory?: CredentialDirectoryWatch; debounceMs?: number; onError?: (error: unknown) => void; onUnavailable?: () => void; }): CredentialStoreObserver | null; //# sourceMappingURL=credential-store-observer.d.ts.map