/** Opening the menu refreshes at most this often; returning from a GitHub flow skips it. */ export declare const REPOSITORY_OPEN_REFRESH_COOLDOWN_MS = 30000; /** * Every return within this window counts as coming back from GitHub, so a * glance back before finishing there doesn't use up the sync. */ export declare const GITHUB_RETURN_WINDOW_MS: number; /** Returns refresh at most this often (alt-tabbing back and forth). */ export declare const GITHUB_RETURN_REFRESH_INTERVAL_MS = 10000; /** * The person is leaving to change this workspace's GitHub access: install, * choose repositories, or the GitHub settings page. Their next returns * refresh the repository menu at once (and sync for an App manager). */ export declare function markGitHubAccessChanged(workspaceId: string): void; /** Forgets every return mark (for tests). */ export declare function clearGitHubAccessChanges(): void; /** True while a return from GitHub is still within its window. */ export declare function returningFromGitHub(workspaceId: string): boolean;