import "filepond-plugin-file-poster/dist/filepond-plugin-file-poster.css"; import "filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css"; import "filepond/dist/filepond.css"; import type { DataObject } from "@olenbetong/appframe-data"; import { type FilePondErrorDescription, type FilePondFile, type FilePondOptions, FileStatus, registerPlugin } from "filepond"; import { type RefObject } from "react"; export { FileStatus, registerPlugin }; type FilePondProps> = React.HTMLProps & { dataObject: DataObject; fields: Partial; onUploadStart: () => void; onFileUploaded: (error: FilePondErrorDescription | null, file: FilePondFile) => void; onFinishedUploads: () => void; onError: (error: string) => void; onFileRemoved?: (primKey: string) => void; /** * If the file should be uploaded to a blob field, set the field name here */ fieldName?: string; /** * If the file should be added to an existing record, set the prim key here */ primKey?: string; /** * If a reference to the file input element is needed, pass a ref here. */ inputRef?: RefObject; /** * Options to pass to FilePond */ filePondOptions?: Partial; attachmentPrimKeys?: string[]; whereClause?: string; }; type FileStoreDataObjectRecord = { PrimKey: string; FileName: string | null; FileSize: number | null; FileRef: string | null; ElementRef: string | null; Damage: boolean; DamageID: number | null; }; export declare function FilePond({ dataObject, fields, onUploadStart, onFileUploaded, onFinishedUploads, onFileRemoved, onError, fieldName, filePondOptions, primKey, attachmentPrimKeys, whereClause, inputRef: inputRefProp, ...props }: FilePondProps): import("react").JSX.Element;