import { apiClient } from "./api-client.js"; export type DeploymentState = Awaited>; /** Prints the user session or organization API-key identity for a command. */ export declare function deploymentSessionIntro(): Promise; /** Error returned when a human must finish parameters or accounts. */ export declare class DeploymentSetupRequiredError extends Error { readonly code = "DEPLOYMENT_SETUP_REQUIRED"; readonly data: { authorizationUrl: string; deploymentId: string; resumeCommand: string; unresolvedParameters: { automationId: string; name: string; }[]; unsatisfiedRequirements: { binding: string; serviceId: string; }[]; }; readonly status = 409; /** * Creates an actionable error for a deployment awaiting authorization. * * @param deployment - Awaiting deployment and focused browser handoff. */ constructor(deployment: DeploymentState); } /** * Polls until deployment completion or optionally required authorization. * * @param deploymentId - Deployment to observe. * @param options - Polling stop behavior. * @param options.returnForAuthorization - Return when human authorization is * required instead of waiting through it. */ export declare function pollDeployment(deploymentId: string, options: { returnForAuthorization: boolean; }): Promise<{ authorization: { requirements: { binding: string; satisfied: boolean; serviceId: string; }[]; url: string; } | null; automations: { description: string; id: string; identityKey: string; scopes: { path: number[]; presentation: "collapsed" | "expanded" | "hidden"; name?: string | undefined; }[]; subscriptions: { config: import("zod").JSONType; eventType: string; hookSlot: number; scopePath: number[]; }[]; parameterIssues?: string[] | undefined; parameters?: ({ label: string; required: boolean; type: "email" | "text" | "url" | "phone" | "textarea"; name: string; defaultValue?: string | undefined; maxLength?: number | undefined; minLength?: number | undefined; placeholder?: string | undefined; description?: string | undefined; } | { label: string; required: boolean; step: number; type: "number"; name: string; defaultValue?: number | undefined; max?: number | undefined; min?: number | undefined; placeholder?: string | undefined; description?: string | undefined; } | { label: string; required: boolean; step: number; type: "date"; name: string; defaultValue?: string | undefined; max?: string | undefined; min?: string | undefined; description?: string | undefined; } | { label: string; required: boolean; step: number; type: "datetime"; name: string; defaultValue?: string | undefined; max?: string | undefined; min?: string | undefined; description?: string | undefined; } | { label: string; type: "select"; options: { label: string; value: string; }[]; required: boolean; name: string; defaultValue?: string | undefined; placeholder?: string | undefined; description?: string | undefined; } | { label: string; type: "radio"; options: { label: string; value: string; }[]; required: boolean; name: string; defaultValue?: string | undefined; placeholder?: string | undefined; description?: string | undefined; } | { label: string; options: { label: string; value: string; }[]; required: boolean; type: "multi-select"; name: string; defaultValue?: string[] | undefined; placeholder?: string | undefined; description?: string | undefined; } | { label: string; defaultValue: boolean; required: boolean; type: "checkbox"; name: string; description?: string | undefined; } | { label: string; required: boolean; type: "file"; name: string; description?: string | undefined; })[] | undefined; parameterValues?: Record | undefined; }[]; createdAt: Date; failure: { message: string; } | null; id: string; git: { commitSha: string; dirty: boolean; projectPath: string; repositoryUrl: string; } | null; project: { id: string; name: string; organization: { id: string; name: string; }; }; status: "failed" | "succeeded" | "planning" | "awaiting_authorization" | "configuring" | "publishing" | "cancelled"; }>; /** * Opens or prints the focused Parameters & Accounts handoff. * * @param deployment - Deployment awaiting authorization. * @param options - Browser handoff behavior. * @param options.openBrowser - Open the URL instead of printing it only. */ export declare function openDeploymentAuthorization(deployment: DeploymentState, options: { openBrowser: boolean; }): Promise; //# sourceMappingURL=deployment-lifecycle.d.ts.map