import type { BuildArtifact } from "./build-strategy.ts"; import type { ProjectInfo, RegionInfo, ServiceInfo, VersionInfo } from "./types.ts"; export interface DeployProgress { onBuildStart?(): void; onBuildComplete?(artifact: BuildArtifact): void; onArchiveCreating?(): void; onArchiveReady?(sizeBytes: number): void; onVersionCreated?(versionId: string): void; onUploadStart?(): void; onUploadComplete?(): void; onStartRequested?(): void; onStatusChange?(status: string): void; onRunning?(deploymentUrl: string): void; onPromoteStart?(): void; onPromoted?(serviceEndpointDomain: string): void; onPromoteFailed?(error?: Error): void; onOldVersionStopping?(versionId: string): void; onOldVersionStopped?(versionId: string): void; onOldVersionStopFailed?(versionId: string): void; onOldVersionDeleting?(versionId: string): void; onOldVersionDeleted?(versionId: string): void; onOldVersionDeleteFailed?(versionId: string): void; onCleanupDanglingVersion?(versionId: string): void; onCleanupDanglingVersionComplete?(versionId: string): void; onCleanupDanglingVersionFailed?(versionId: string): void; } export interface PromoteProgress { onVersionStarting?(versionId: string): void; onVersionStartRequested?(): void; onStatusChange?(status: string): void; onVersionRunning?(): void; onPromoteStart?(): void; onPromoted?(serviceEndpointDomain: string): void; onPromoteFailed?(error?: Error): void; } export interface DeployInteraction { selectProject?(projects: ProjectInfo[]): Promise; selectService?(services: ServiceInfo[]): Promise; provideServiceName?(): Promise; selectRegion?(regions: RegionInfo[]): Promise; } export interface UpdateEnvProgress { onVersionCreated?(versionId: string): void; onStartRequested?(): void; onStatusChange?(status: string): void; onRunning?(deploymentUrl: string): void; } export interface DestroyVersionInteraction { selectVersion?(versions: VersionInfo[]): Promise; } export interface DestroyVersionProgress { onStopRequested?(versionId: string): void; onStopped?(versionId: string): void; onDeleted?(versionId: string): void; } export interface DestroyServiceProgress { onStoppingVersions?(versionIds: string[]): void; onVersionStopped?(versionId: string): void; onAllVersionsStopped?(): void; onDeletingVersions?(versionIds: string[]): void; onVersionDeleted?(versionId: string): void; onAllVersionsDeleted?(): void; onServiceDeleted?(serviceId: string): void; } //# sourceMappingURL=callbacks.d.ts.map