import type { Upload, DocumentQuery, DbOperation } from './types.ts'; /** * Options for getUpload */ interface GetUploadOptions { /** Filter by published status of the document */ published?: boolean; /** Include hidden uploads (default: false) */ includeHidden?: boolean; } /** * Gets a single upload by document and original filename * * This function retrieves a specific upload by identifying the document and matching the original filename. * By default, hidden uploads are excluded unless includeHidden is true. * * @param client Database client * @param query Document query (supports path string, id number, OptimisticDocument, Route, etc.) * @param original_filename The original filename to search for (matches against the `original_filename` column) * @param options Options for filtering by published status and hidden visibility * @returns Upload object if found, null if not found or document doesn't exist */ export declare const getUpload: DbOperation<[DocumentQuery, string, GetUploadOptions?], Upload | null>; export {}; //# sourceMappingURL=getUpload.d.ts.map