import { type ValueTypeOf } from "@elaraai/east"; import { type PlanPayloadType } from "@elaraai/e3-ui/internal"; import { type ScheduleEditing, type ScheduleEditingArgs, type ScheduleRead } from "../../shared/schedule/editing.js"; export type { ScheduleChange as PlanEventChange, ScheduleKindSession as PlanKindSession, ScheduleEventDraftsValue as PlanEventDraftsValue, ScheduleKindDraftsValue as PlanKindDraftsValue, ScheduleGestureValue as PlanEventGestureValue, } from "../../shared/schedule/editing.js"; type Kind = ValueTypeOf["events"][number]; type Item = Extract, { type: "some"; }>["value"]["item"]; /** The Plan's projected event and its full record row. */ export type PlanEventReadValue = ScheduleRead; /** Shared editing, with the Plan's richer event projection. */ export type PlanEventEditing = ScheduleEditing; /** The Plan's event editing inputs: the shared ones, the rows each kind's cells hold among them (`held`, #1039). */ export interface PlanEventEditingArgs extends Omit, "kinds"> { /** The Plan's event kinds. */ kinds: readonly Kind[]; } /** Adapts the Plan's event projection to the shared record editing history: each kind's events as Plan draws them. */ export declare function usePlanEventEditing(args: PlanEventEditingArgs): PlanEventEditing; /** * Removes selected events through their record sessions as one undoable gesture. * Both the inspector and keyboard use the event's original record key. * * @param keys - The selected elements' printed event references * @param editing - The shared event sessions, when the canvas is ready * @param label - A specific history label, when the caller has the event titles * @returns Whether the removal was recorded */ export declare function removePlanEvents(keys: readonly string[], editing: PlanEventEditing | undefined, label?: string): boolean; //# sourceMappingURL=events.d.ts.map