export interface VerifyMaps { signatures: Map | null; checksums: Map | null; } /** * Download and parse signature.bin + checksums.txt from the release. * Returns null maps when the corresponding skip flag is set. */ export declare function loadVerifyMaps(releaseBaseUrl: string, fetchImpl: typeof fetch | undefined, skipSignature: boolean, skipChecksum: boolean): Promise; /** * Verify a single archive file against the signature and checksum maps. * Throws an Error with a human-readable message on failure. */ export declare function verifyArchive(archivePath: string, archiveName: string, maps: VerifyMaps, publicKeyHex: string): Promise; /** * Verify the binary archive. On failure, prints an error, deletes the * archive, and returns false. On success, prints confirmation and returns true. */ export declare function verifyBinaryArchive(archivePath: string, archiveName: string, maps: VerifyMaps, publicKeyHex: string): Promise; /** * Verify the model archive. On failure, prints an error, deletes the * archive, and returns false. On success, prints confirmation and returns true. */ export declare function verifyModelArchive(archivePath: string, maps: VerifyMaps, publicKeyHex: string): Promise; /** * Check if the embedding model files already exist in the model directory. * Used to skip the ~154MB model download on reinstalls. */ export declare function modelFilesExist(dir: string): boolean;