import type { DataFileRef, WorkflowTaskFileUpload } from 'openxiangda-contracts/browser'; import { type WorkflowTaskFileUploadIntent } from '../../workflow-task-file-upload'; import type { SurfaceField } from '../resource/SurfaceFields'; import type { useWorkflowTaskForm } from './WorkflowTaskForm'; /** One active upload per task form; only transient presentation state is held here. */ export declare function useWorkflowTaskFiles({ taskId, controller, onBusyChange }: { taskId?: string; controller: ReturnType; onBusyChange?: (busy: boolean) => void; }): { upload: (field: SurfaceField, file: File, _recordId?: string, onRecovered?: (file: DataFileRef) => void, row?: WorkflowTaskFileUpload["row"]) => Promise; pending: (WorkflowTaskFileUploadIntent & { onRecovered?: (file: DataFileRef) => void; }) | null; busy: boolean; failure: string; recover: (readOnly: boolean) => Promise; }; export declare function WorkflowTaskFileRecovery({ files }: { files: ReturnType; }): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=WorkflowTaskFiles.d.ts.map