import { z } from "zod"; import type { ModelProgressUpdate } from "./load-model"; export declare const downloadAssetOptionsSchema: z.ZodPipe; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>; seed: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ seed: boolean; assetSrc: string | { src: string; name?: string | undefined; modelId?: string | undefined; registryPath?: string | undefined; registrySource?: string | undefined; blobCoreKey?: string | undefined; blobIndex?: number | undefined; engine?: string | undefined; expectedSize?: number | undefined; sha256Checksum?: string | undefined; addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined; }; }, { assetSrc: string | { src: string; name?: string | undefined; modelId?: string | undefined; registryPath?: string | undefined; registrySource?: string | undefined; blobCoreKey?: string | undefined; blobIndex?: number | undefined; engine?: string | undefined; expectedSize?: number | undefined; sha256Checksum?: string | undefined; addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined; }; seed?: boolean | undefined; }>>; export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>; seed: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ type: "downloadAsset"; assetSrc: string; withProgress: boolean; seed: boolean; requestId?: string; }, { assetSrc: string | { src: string; name?: string | undefined; modelId?: string | undefined; registryPath?: string | undefined; registrySource?: string | undefined; blobCoreKey?: string | undefined; blobIndex?: number | undefined; engine?: string | undefined; expectedSize?: number | undefined; sha256Checksum?: string | undefined; addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined; }; seed?: boolean | undefined; onProgress?: unknown; withProgress?: boolean | undefined; requestId?: string | undefined; }>>; export declare const downloadAssetRequestSchema: z.ZodPipe; assetSrc: z.ZodString; withProgress: z.ZodOptional; seed: z.ZodOptional; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ seed: boolean; type: "downloadAsset"; assetSrc: string; withProgress?: boolean | undefined; requestId?: string | undefined; }, { type: "downloadAsset"; assetSrc: string; withProgress?: boolean | undefined; seed?: boolean | undefined; requestId?: string | undefined; }>>; export declare const downloadAssetResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"downloadAsset">; success: z.ZodBoolean; assetId: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export declare const downloadTypeSchema: z.ZodEnum<{ hyperdrive: "hyperdrive"; http: "http"; registry: "registry"; }>; export declare const sourceTypeSchema: z.ZodEnum<{ hyperdrive: "hyperdrive"; http: "http"; registry: "registry"; filesystem: "filesystem"; }>; export declare const downloadMetadataSchema: z.ZodObject<{ key: z.ZodString; startTime: z.ZodNumber; type: z.ZodEnum<{ hyperdrive: "hyperdrive"; http: "http"; registry: "registry"; }>; }, z.core.$strip>; export declare const hyperdriveDownloadMetadataSchema: z.ZodObject<{ key: z.ZodString; startTime: z.ZodNumber; type: z.ZodLiteral<"hyperdrive">; hyperdriveKey: z.ZodString; modelFileName: z.ZodString; }, z.core.$strip>; export declare const httpDownloadMetadataSchema: z.ZodObject<{ key: z.ZodString; startTime: z.ZodNumber; type: z.ZodLiteral<"http">; url: z.ZodURL; modelPath: z.ZodString; }, z.core.$strip>; export declare const registryDownloadMetadataSchema: z.ZodObject<{ key: z.ZodString; startTime: z.ZodNumber; type: z.ZodLiteral<"registry">; registryPath: z.ZodString; }, z.core.$strip>; export type DownloadAssetOptions = z.input & { onProgress?: (progress: ModelProgressUpdate) => void; }; export type DownloadAssetRequest = z.infer; export type DownloadAssetResponse = z.infer; export type DownloadType = z.infer; export type SourceType = z.infer; export type BaseDownloadEntry = z.infer & { promise: Promise; abortController: AbortController; onProgress?: (progress: ModelProgressUpdate) => void; }; export type HyperdriveDownloadEntry = BaseDownloadEntry & z.infer; export type HttpDownloadEntry = BaseDownloadEntry & z.infer; export type RegistryDownloadEntry = BaseDownloadEntry & z.infer; export type DownloadEntry = HyperdriveDownloadEntry | HttpDownloadEntry | RegistryDownloadEntry; //# sourceMappingURL=download-asset.d.ts.map