import { type JSONNode } from '@redneckz/json-op'; import type { FileAPI, FilePath, ListFilesOptions } from './FileAPI'; export interface FileMeta { publicId: string; revision: number; name: string; } export interface FileMetaWithJSON extends FileMeta { json?: string; } export interface FileStorageOptions { projectId?: string; baseURL?: string; fetch?: typeof fetch; } export declare class FileStorageAPI implements FileAPI { private readonly options; get projectId(): string; get baseURL(): string; constructor(options?: FileStorageOptions); listFiles(options: ListFilesOptions): Promise; downloadFiles(options: ListFilesOptions): Promise<[FilePath, JSONNode][]>; countFiles(options: ListFilesOptions): Promise; readJSON(filePath: FilePath): Promise; private fetchAllProjectDocs; private fetchProjectDocs; private computeDocQueryParams; }