import type { Upload, DbOperation, UploadId } from './types.ts'; /** * Input for updating an upload */ interface UpdateUploadInput { /** New filename for the upload */ original_filename?: string; /** Whether the upload is hidden */ hidden?: boolean; } /** * Updates an upload's original_filename and/or hidden status. * * When renaming or unhiding causes a filename collision with an existing visible upload: * - The existing visible upload gets renamed with an incremented suffix * - The existing visible upload is marked as hidden * - The target upload takes the desired filename and visibility * * @param client Database client * @param uploadId The ID of the upload to update * @param input The fields to update (original_filename and/or hidden) * @returns The updated Upload object * @throws Error if upload doesn't exist */ export declare const updateUpload: DbOperation<[UploadId, UpdateUploadInput], Upload>; export {}; //# sourceMappingURL=updateUpload.d.ts.map