export interface OAuthRefreshLock { release(): Promise; } declare function lockOwner(lockDir: string): string | undefined; /** * Acquire an exclusive cross-process lock for refreshing OAuth tokens. * * Uses an atomic-`mkdir` directory lock at `.oauth.lock.lock` with a * stale-break heuristic and owner-checked release, mirroring langsmith-go's * non-POSIX path. `deadline` is a `Date.now()`-based timestamp; acquisition * rejects once it passes. Callers treat any rejection as "skip refresh, use the * current token". */ 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 {};