import { type HelixApi } from '../api'; export declare const CONTINUUM_OBJECT_UPLOAD_MAX_BYTES: number; export declare const CONTINUUM_INLINE_OBJECT_MAX_BYTES: number; /** Advertised maximum for the dedicated reviewed-Unreal large lane. */ export declare const CONTINUUM_LARGE_OBJECT_MAX_BYTES: number; /** Per-part PUT deadline. A timeout is a transient failure: the checkpoint is kept. */ export declare const CONTINUUM_LARGE_PART_TIMEOUT_MS: number; interface Receipt { contentId: string; sizeBytes: number; mediaType: string; filename: string; audience: 'private' | 'public'; } /** Local bytes use the verified binary ingestion flow above the inline endpoint's small JSON-body limit. */ export declare function stageContinuumObject(api: HelixApi, input: { bytes: Uint8Array; filename: string; mediaType: string; audience?: 'private' | 'public'; }): Promise; export type ContinuumLargeUploadDeps = { /** Durable directory for the resumable intent token. Defaults to ~/.helix. */ stateDirectory?: string; /** * Stable checkpoint scope. Defaults to the API origin plus a non-reversible * fingerprint of the caller's credential, so a signed intent token can never * be reused against another account or server. The raw bearer is never stored. */ scope?: string; partTimeoutMs?: number; onProgress?: (uploadedBytes: number, totalBytes: number) => void; fetchImpl?: typeof fetch; now?: () => number; }; export interface ContinuumLargeUploadIntentResponse { uploadId: string; uploadToken: string; expiresAt: string; partSizeBytes: number; partCount: number; parts: { partNumber: number; partUrl: string; }[]; receipt: Receipt; } /** Stream a file once to get its exact size and SHA-256 with bounded memory. */ export declare function sha256File(path: string): Promise<{ sha256: string; sizeBytes: number; }>; export declare function stageContinuumLargeObjectFromFile(api: HelixApi, input: { path: string; filename: string; mediaType: string; audience?: 'private' | 'public'; sha256?: string; sizeBytes?: number; }, deps?: ContinuumLargeUploadDeps): Promise; export {};