import type { GlobalAfterReadHook, GlobalBeforeChangeHook } from 'payload'; interface FileHookOptions { readonly uploadCollection: string; } /** * Creates a `GlobalAfterReadHook` that reads the upload file * referenced by `doc.file` and populates the virtual `data` field. */ export declare const createPopulateDataFromFileHook: ({ uploadCollection }: FileHookOptions) => GlobalAfterReadHook; /** * Creates a `GlobalBeforeChangeHook` that serializes the incoming * `data` field to a JSON file in the upload collection and stores * the resulting file ID on `data.file`. */ export declare const createPersistDataToFileHook: ({ uploadCollection }: FileHookOptions) => GlobalBeforeChangeHook; export {}; //# sourceMappingURL=file-storage-hooks.d.ts.map