export declare const OAUTH_REFRESH_LOCK_STALE_AFTER_MS = 15000; export interface OAuthRefreshLock { release(): Promise; } declare function lockOwner(lockDir: string): string | undefined; /** * Acquire the cross-process lock for refreshing OAuth tokens, shared with the * Python, Go and Java SDKs: an atomic-`mkdir` directory at * `.oauth.lock.lock` with owner-checked release. A lock older * than LOCK_STALE_AFTER_MS is taken over. `deadline` is a `Date.now()`-based * timestamp; acquisition rejects once it passes. */ export declare function acquireOAuthRefreshLock(configPath: string, deadline: number): Promise; export declare const _internal: { LOCK_METADATA_FILE: string; LOCK_STALE_AFTER_MS: number; lockOwner: typeof lockOwner; }; export {};