import { z } from 'zod'; /** * Regex for validating Google Cloud project IDs. * - 6 to 30 characters in length. * - Contain only lowercase letters, numbers, and hyphens. * - Must start with a letter. * - Cannot end with a hyphen. */ export declare const PROJECT_ID_REGEX: RegExp; export declare const EnsureGcloudInputSchema: z.ZodObject<{ minVersion: z.ZodDefault; forceLocal: z.ZodDefault; useSystemGcloud: z.ZodOptional>; }, "strip", z.ZodTypeAny, { minVersion: string; forceLocal: boolean; useSystemGcloud?: boolean | undefined; }, { minVersion?: string | undefined; forceLocal?: boolean | undefined; useSystemGcloud?: boolean | undefined; }>; export type EnsureGcloudInput = z.infer; export declare const AuthenticateInputSchema: z.ZodObject<{ skipIfActive: z.ZodDefault; }, "strip", z.ZodTypeAny, { skipIfActive: boolean; }, { skipIfActive?: boolean | undefined; }>; export type AuthenticateInput = z.infer; export declare const ListProjectsInputSchema: z.ZodObject<{ limit: z.ZodOptional; filter: z.ZodOptional; sortBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { filter?: string | undefined; limit?: number | undefined; sortBy?: string | undefined; }, { filter?: string | undefined; limit?: number | undefined; sortBy?: string | undefined; }>; export type ListProjectsInput = z.infer; export declare const SetProjectInputSchema: z.ZodObject<{ projectId: z.ZodString; }, "strip", z.ZodTypeAny, { projectId: string; }, { projectId: string; }>; export type SetProjectInput = z.infer; export declare const GcloudErrorCode: z.ZodEnum<["DOWNLOAD_FAILED", "EXTRACTION_FAILED", "VERSION_CHECK_FAILED", "INVALID_VERSION", "AUTH_FAILED", "ADC_FAILED", "PROJECT_LIST_FAILED", "PROJECT_SET_FAILED", "COMMAND_NOT_FOUND", "UNKNOWN_ERROR"]>; export type GcloudErrorCodeType = z.infer; export declare const GcloudInstallDataSchema: z.ZodObject<{ version: z.ZodString; location: z.ZodEnum<["system", "bundled"]>; path: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; version: string; location: "system" | "bundled"; }, { path: string; version: string; location: "system" | "bundled"; }>; export declare const GcloudSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ version: z.ZodString; location: z.ZodEnum<["system", "bundled"]>; path: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; version: string; location: "system" | "bundled"; }, { path: string; version: string; location: "system" | "bundled"; }>; }, "strip", z.ZodTypeAny, { success: true; data: { path: string; version: string; location: "system" | "bundled"; }; }, { success: true; data: { path: string; version: string; location: "system" | "bundled"; }; }>; export declare const GcloudFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["DOWNLOAD_FAILED", "EXTRACTION_FAILED", "VERSION_CHECK_FAILED", "INVALID_VERSION", "AUTH_FAILED", "ADC_FAILED", "PROJECT_LIST_FAILED", "PROJECT_SET_FAILED", "COMMAND_NOT_FOUND", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }>; export type GcloudResult = z.infer | z.infer; export declare const AuthDataSchema: z.ZodObject<{ account: z.ZodString; type: z.ZodEnum<["user", "adc"]>; }, "strip", z.ZodTypeAny, { type: "user" | "adc"; account: string; }, { type: "user" | "adc"; account: string; }>; export declare const AuthSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ account: z.ZodString; type: z.ZodEnum<["user", "adc"]>; }, "strip", z.ZodTypeAny, { type: "user" | "adc"; account: string; }, { type: "user" | "adc"; account: string; }>; }, "strip", z.ZodTypeAny, { success: true; data: { type: "user" | "adc"; account: string; }; }, { success: true; data: { type: "user" | "adc"; account: string; }; }>; export declare const AuthFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["DOWNLOAD_FAILED", "EXTRACTION_FAILED", "VERSION_CHECK_FAILED", "INVALID_VERSION", "AUTH_FAILED", "ADC_FAILED", "PROJECT_LIST_FAILED", "PROJECT_SET_FAILED", "COMMAND_NOT_FOUND", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }>; export type AuthResult = z.infer | z.infer; export declare const ProjectSchema: z.ZodObject<{ projectId: z.ZodString; name: z.ZodString; projectNumber: z.ZodOptional; createTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }, { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }>; export declare const ProjectListSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ projects: z.ZodArray; createTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }, { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { projects: { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }[]; }, { projects: { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }[]; }>; }, "strip", z.ZodTypeAny, { success: true; data: { projects: { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }[]; }; }, { success: true; data: { projects: { projectId: string; name: string; projectNumber?: string | undefined; createTime?: string | undefined; }[]; }; }>; export declare const ProjectListFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["DOWNLOAD_FAILED", "EXTRACTION_FAILED", "VERSION_CHECK_FAILED", "INVALID_VERSION", "AUTH_FAILED", "ADC_FAILED", "PROJECT_LIST_FAILED", "PROJECT_SET_FAILED", "COMMAND_NOT_FOUND", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }>; export type ProjectListResult = z.infer | z.infer; export declare const ProjectSetSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ projectId: z.ZodString; }, "strip", z.ZodTypeAny, { projectId: string; }, { projectId: string; }>; }, "strip", z.ZodTypeAny, { success: true; data: { projectId: string; }; }, { success: true; data: { projectId: string; }; }>; export declare const ProjectSetFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["DOWNLOAD_FAILED", "EXTRACTION_FAILED", "VERSION_CHECK_FAILED", "INVALID_VERSION", "AUTH_FAILED", "ADC_FAILED", "PROJECT_LIST_FAILED", "PROJECT_SET_FAILED", "COMMAND_NOT_FOUND", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }, { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }, { success: false; error: { code: "DOWNLOAD_FAILED" | "EXTRACTION_FAILED" | "VERSION_CHECK_FAILED" | "INVALID_VERSION" | "AUTH_FAILED" | "ADC_FAILED" | "PROJECT_LIST_FAILED" | "PROJECT_SET_FAILED" | "COMMAND_NOT_FOUND" | "UNKNOWN_ERROR"; message: string; recoverable: boolean; suggestion?: string | undefined; }; }>; export type ProjectSetResult = z.infer | z.infer; export interface GcloudService { /** * Ensure gcloud is installed and meets minimum version requirements */ ensureInstalled(input: EnsureGcloudInput): Promise; /** * Authenticate user with gcloud */ authenticate(input: AuthenticateInput): Promise; /** * Authenticate application default credentials */ authenticateADC(input: AuthenticateInput): Promise; /** * List user's projects */ listProjects(input: ListProjectsInput): Promise; /** * Set the active project */ setProject(input: SetProjectInput): Promise; /** * Get access token for API requests */ getAccessToken(): Promise; /** * Install beta components */ installBetaComponents(): Promise<{ success: boolean; error?: { message: string; }; }>; /** * Check if Application Default Credentials (ADC) exist. */ hasADC(): Promise; /** /** * Get the active project ID. */ getProjectId(): Promise; /** * Get the active user account. */ getActiveAccount(): Promise; }