import type { CalendarTask, TaskDraft } from './calendar.types'; export interface CalendarTaskEditorProps { mode: 'create' | 'edit'; /** Edit mode: which task to load via `loadTask`. */ taskId?: string; /** Create mode: the date and time to prefill, the grid's selection or * now. Local wall-clock, never re-read after mount. */ initialDate?: Date; onCancel: () => void; /** Fires once a create or update lands. */ onSaved?: (task: CalendarTask) => void; onDeleted?: (id: string) => void; /** Must resolve WITH the saved record: the host assigns the new id. */ onCreateTask?: (draft: TaskDraft) => Promise; /** Full re-send, not a patch. Resolves with nothing. */ onUpdateTask?: (id: string, draft: TaskDraft) => Promise; onDeleteTask?: (id: string) => Promise; onSetTaskDone?: (id: string, done: boolean) => Promise; loadTask?: (id: string) => Promise; /** Withholds every write control and disables the fieldset. */ readOnly?: boolean; /** Privacy mode: the linked patient's identity is masked, never the fact * that one is linked. */ privacy?: boolean; } export declare function CalendarTaskEditor(props: CalendarTaskEditorProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=calendar-task-editor.d.ts.map