import type { Data, DocumentSlots, FormState, SanitizedDocumentPermissions, UploadEdits } from 'payload'; import React from 'react'; import type { State } from './reducer.js'; type FormsManagerContext = { readonly activeIndex: State['activeIndex']; readonly addFiles: (filelist: FileList) => Promise; readonly bulkUpdateForm: (updatedFields: Record, afterStateUpdate?: () => void) => Promise; readonly collectionSlug: string; readonly docPermissions?: SanitizedDocumentPermissions; readonly documentSlots: DocumentSlots; readonly forms: State['forms']; getFormDataRef: React.RefObject<() => Data>; readonly hasPublishPermission: boolean; readonly hasSavePermission: boolean; readonly hasSubmitted: boolean; readonly isInitializing: boolean; readonly removeFile: (index: number) => void; readonly resetUploadEdits?: () => void; readonly saveAllDocs: ({ overrides }?: { overrides?: Record; }) => Promise; readonly setActiveIndex: (index: number) => void; readonly setFormTotalErrorCount: ({ errorCount, index, }: { errorCount: number; index: number; }) => void; readonly totalErrorCount?: number; readonly updateUploadEdits: (args: UploadEdits) => void; }; export type InitialForms = Array<{ file: File; formID?: string; initialState?: FormState | null; }>; type FormsManagerProps = { readonly children: React.ReactNode; }; export declare function FormsManagerProvider({ children }: FormsManagerProps): React.JSX.Element; export declare function useFormsManager(): FormsManagerContext; export {}; //# sourceMappingURL=index.d.ts.map