import { type SetupState, type SetupStepKey } from "../config.js"; export interface SetupFlags { projectId?: string; createProject?: string; projectName?: string; credentialsJson?: string; testUserEmail?: string; port?: number; } export interface DeepLink { label: string; url: string; } export interface StepOutcome { step: SetupStepKey; advanced: boolean; title: string; detail?: Record; instructions?: string[]; deep_links?: DeepLink[]; error?: string; code?: string; } export declare function consoleUrl(path: string, projectId?: string): string; export declare function advanceGcpProject(flags: SetupFlags): Promise; export declare function advanceApisEnabled(_flags: SetupFlags, state: SetupState): Promise; export declare function advanceOauthClient(_flags: SetupFlags, _state: SetupState): Promise; export interface DesktopCredentials { client_id: string; client_secret: string; project_id?: string; } export type DesktopCredentialsResult = { ok: true; value: DesktopCredentials; } | { ok: false; code: "FILE_NOT_FOUND" | "INVALID_JSON" | "WRONG_CLIENT_TYPE"; message: string; }; export declare function parseDesktopCredentials(path: string): DesktopCredentialsResult; export declare function advanceCredentialsSaved(flags: SetupFlags): Promise; export declare function advanceConsentScreen(_flags: SetupFlags, _state: SetupState): Promise; export declare function advanceTestUserAdded(flags: SetupFlags, _state: SetupState): Promise;