import { DeploymentVerificationDetailsResponse } from './graphql/deployment-verification-details.js'; interface Build { id: string; assetPath: string; } interface ClientError extends Error { statusCode: number; } interface DeploymentHooks { buildFunction?: (urlPath?: string) => Promise; onDeploymentCompletedVerificationStart?: () => void; onDeploymentCompletedVerificationError?: () => void; onDeploymentFailed?: (responseData: DeploymentVerificationDetailsResponse) => void; onDeploymentCompleted?: () => void; onVerificationStart?: () => void; onVerificationComplete?: () => void; onVerificationError?: (error: Error) => void; onUploadFilesStart?: () => void; onUploadFilesError?: (error: Error) => void; onUploadFilesComplete?: () => void; } interface DeploymentConfig { assetsDir?: string; bugsnag: boolean; buildCommand?: string; deploymentToken: DeploymentToken; deploymentUrl: string; environmentTag?: string; metadata: { description?: string; hydrogenVersion?: string; user?: string; version?: string; url?: string; }; defaultEnvironment: boolean; rootPath?: string; skipBuild: boolean; workerDir?: string; workerOnly: boolean; generateAuthBypassToken: boolean; authBypassTokenDuration?: string; overriddenEnvironmentVariables?: EnvironmentVariable[]; } interface EnvironmentVariable { isSecret: boolean; key: string; value: string; } interface DeploymentToken { accessToken: string; allowedResource: string; appId: string; client: string; expiresAt: string; namespace: string; namespaceId: string; } interface DeploymentManifestFile { filePath: string; fileSize: number; mimeType: string; fileHash: string; fileType: string; } interface EnvironmentInput { handle?: string; tag?: string; } declare enum FileType { Worker = "WORKER", Asset = "ASSET" } interface OxygenError { message: string; } declare class DeploymentCompletedVerificationError extends Error { } export { type Build, type ClientError, DeploymentCompletedVerificationError, type DeploymentConfig, type DeploymentHooks, type DeploymentManifestFile, type DeploymentToken, type EnvironmentInput, type EnvironmentVariable, FileType, type OxygenError };