import type { BasePayload } from 'payload'; import type { Messages } from '../types'; interface PersistOptions { readonly payload: BasePayload; readonly collection: string; readonly data: Messages; readonly locale: string; readonly existingFileId?: number | string; } /** * Serializes messages to a JSON file and uploads it via Payload's * `filePath` API. Creates a new document or updates an existing one. */ export declare function persistDataToFile({ payload, collection, data, locale, existingFileId, }: PersistOptions): Promise; interface ReadOptions { readonly payload: BasePayload; readonly collection: string; readonly fileId: number | string | undefined; } /** * Reads and parses a JSON messages file from the upload collection's * local filesystem path. */ export declare function readDataFromFile({ payload, collection, fileId, }: ReadOptions): Promise; export {}; //# sourceMappingURL=file-storage.d.ts.map