import { refreshAgyCredentials } from "../../providers/antigravity-cli/credentials.js"; import type { OAuthController, OAuthCredentials } from "./types.js"; /** Per-stream buffering: a URL is complete only at a delimiter or EOF. */ export declare class AgyAuthUrlParser { #private; push(chunk: string, end?: boolean): string | undefined; } export declare function agyAuthorizationCode(input: string): string; export interface CleanupLoginOptions { /** Test seam: runs after the directory is claimed and before the credential check. */ afterClaim?: (directory: string) => Promise; } /** * Remove abandoned login directories that never produced a credential. * A directory with a credential is retained for the export-failure recovery path. * Eligible directories are renamed before the check so a concurrent credential write * either lands in the claimed directory and is restored, or cannot be reached by path. */ export declare function cleanupAbandonedLoginDirectories(root: string, now?: number, options?: CleanupLoginOptions): Promise; export declare function loginAntigravityCli(ctrl: OAuthController): Promise; export declare const refreshAntigravityCli: typeof refreshAgyCredentials;