import { B as BaseStorage, D as DownloadProgress } from '../../base-storage-CfkDwX0r.js'; /** * Model Sync Service * * Downloads model weights progressively from a sync server, * with resume support and verification. */ declare class ModelSync { private storage; private syncUrl; private onProgress?; private abortController; private currentProgress; private isPaused; constructor(storage: BaseStorage, syncUrl: string, onProgress?: (progress: DownloadProgress) => void); /** * Start or resume syncing a model */ startSync(modelId: string): Promise; /** * Pause the current sync */ pauseSync(): Promise; /** * Resume the current sync */ resumeSync(): Promise; /** * Cancel the current sync */ cancelSync(): Promise; /** * Get current progress */ getProgress(): DownloadProgress | null; /** * Check if syncing */ isSyncing(): boolean; /** * Fetch model manifest from sync server */ private fetchManifest; /** * Download tokenizer files */ private downloadTokenizer; /** * Download a tensor's chunks */ private downloadTensor; /** * Compute SHA-256 hash of data */ private computeHash; /** * Emit progress update */ private emitProgress; } /** * Sync Factory * * Creates ModelSync instances. */ interface SyncOptions { /** Sync server URL */ syncUrl: string; /** Progress callback */ onProgress?: (progress: DownloadProgress) => void; } /** * Create a model sync service */ declare function createModelSync(storage: BaseStorage, options: SyncOptions): ModelSync; /** * Default sync server URLs */ declare const DEFAULT_SYNC_URLS: { readonly production: "https://models.affectively.ai"; readonly development: "http://localhost:8787"; }; export { DEFAULT_SYNC_URLS, ModelSync, type SyncOptions, createModelSync };