import type { ScopeMap } from '../access.js'; import type { AnyDb } from '../dialect.js'; import { bunderstackFiles } from '../internal-tables.js'; export type FileMetaRow = typeof bunderstackFiles.$inferSelect; export declare function insertPendingFile(db: AnyDb, input: { fileId: string; bucket: string; ownerId: string | null; scopeJson: string | null; filename: string | null; contentType: string | null; }): Promise; export declare function insertReadyFile(db: AnyDb, input: { fileId: string; bucket: string; ownerId: string | null; scopeJson: string | null; filename: string | null; contentType: string | null; size: number | null; }): Promise; export declare function markFileReady(db: AnyDb, fileId: string, patch: { size: number | null; contentType: string | null; }): Promise; export declare function getFileMeta(db: AnyDb, fileId: string): Promise; export declare function deleteFileMetaRow(db: AnyDb, fileId: string): Promise; export declare function listStalePendingFiles(db: AnyDb, olderThanMs: number): Promise; export declare function sumReadySize(db: AnyDb, q: { bucket: string; ownerId?: string; scopeJson?: string; }): Promise; export declare function scopeToJson(scope: ScopeMap | undefined | null): string | null; export declare function parseScopeJson(json: string | null): ScopeMap | null; export declare function fileMatchesScope(row: FileMetaRow, requesterScope: ScopeMap | undefined): boolean; //# sourceMappingURL=file-meta.d.ts.map