import type { DocumentQuery, DbOperation } from './types.ts'; import { Readable } from 'stream'; /** * Update a document from a tar.gz archive * Validates that the archive contains the expected files and no unexpected files * * Expected files: * - settings.json (base document, required) * - content.* (any extension, optional, but only one file) OR index.html (optional, mutually exclusive with content.*) * - data.* (any extension, optional, but only one file) * - server.js (optional) * - style.css (optional) * - script.js (optional) * * Size limits: * - Max 10 MB per file * - Max 50 MB total archive * - Max 10 files (excluding directories) * * @throws Error if archive contains multiple content/data files, both index.html and content.* files, unrecognized files, or exceeds size limits */ export declare const updateViaArchive: DbOperation<[DocumentQuery, Readable], void>; //# sourceMappingURL=updateViaArchive.d.ts.map