import { type AppStoreConnectClient } from "../api/client.js"; import { type IpaSource, type ProcessRunner } from "../ipa/artifact.js"; import { type FallbackUploadCredentials, type FallbackUploadMethod } from "../ipa/upload-fallback.js"; export interface BuildsUploadInput { readonly ipaSource: IpaSource; readonly appId: string; readonly expectedBundleId: string; readonly expectedVersion: string; readonly expectedBuildNumber: string; readonly waitProcessing: boolean; readonly apply: boolean; } export interface BuildsUploadResult { readonly mode: "dry-run" | "applied"; readonly preflightReport: { readonly ipaPath: string; readonly bundleId: string | null; readonly version: string | null; readonly buildNumber: string | null; readonly sizeBytes: number; readonly sha256: string | null; readonly md5: string | null; readonly signingValidated: boolean; readonly errors: readonly string[]; readonly warnings: readonly string[]; }; readonly plannedOperations: readonly string[]; readonly buildUploadId: string | null; readonly finalBuildUploadState: string | null; readonly fallbackUploadMethod?: FallbackUploadMethod; readonly fallbackStatusNote?: string; } export declare function uploadBuild(client: AppStoreConnectClient, input: BuildsUploadInput, options?: { readonly sleep?: (ms: number) => Promise; readonly pollIntervalMs?: number; readonly pollTimeoutMs?: number; readonly processRunner?: ProcessRunner; readonly fallbackUploadCredentials?: FallbackUploadCredentials; readonly fallbackEnv?: NodeJS.ProcessEnv; }): Promise; export declare function buildsUploadCommand(client: AppStoreConnectClient, command: { readonly appReference?: string; readonly version?: string; readonly buildNumber?: string; readonly ipaSource?: IpaSource; readonly waitProcessing: boolean; readonly apply: boolean; readonly json: boolean; }, options?: { readonly cwd?: string; readonly processRunner?: ProcessRunner; }): Promise; //# sourceMappingURL=builds-upload.d.ts.map