/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type BuilderFrameDock, type TrackedResult } from "@elaraai/east-ui-components"; import { type ScheduleHeldRows } from "../shared/schedule/editing.js"; import type { ScheduleOverlaps } from "../shared/schedule/overlaps.js"; import { type CalendarShownResources } from "./controls.js"; import { type CalendarCommands } from "./actions.js"; import { type CalendarItem, type CalendarKind, type CalendarRange, type CalendarRef, type CalendarStyles, type CalendarValue } from "./model.js"; export type Inspected = { kind: CalendarKind; item: CalendarItem; row: Uint8Array; }; interface InspectorArgs { value: CalendarValue; refs: readonly CalendarRef[]; range: CalendarRange; commands: CalendarCommands | undefined; styles: CalendarStyles; storageKey: string; overlaps: ScheduleOverlaps; select: (refs: CalendarRef[]) => void; /** Each resource kind's rows the rail shows: what the inspector's Choosers offer, with the event's own (#1343). */ shown: CalendarShownResources; } /** The selection as the inspector shows it: each selected event read, or why the read failed. */ export type CalendarSelection = TrackedResult; /** No selection read yet. */ export declare const NO_SELECTION: CalendarSelection; /** * Selected rows are read through the shared by-key seam, including paged records: a kind read by its cells (#1424) from * the rows they hold, else by its key — never over the window. */ export declare function useCalendarSelection(args: Pick & { held: ScheduleHeldRows | undefined; }): CalendarSelection; /** * The selection's read, in a component of its own (#1343): a selected event is read over the window, so each search * of a window read through an interval index re-runs it, and it hands the frame the selection only when what the * inspector shows moves. * * @param props - What the selection reads, and where it goes * @returns Nothing: it reads */ export declare function CalendarSelectionReader(props: Pick & { held: ScheduleHeldRows | undefined; onSelection: (selection: CalendarSelection) => void; }): null; /** What the inspector shows: the selection read, and what its views edit it through. */ type InspectorShown = InspectorArgs & { selection: CalendarSelection; }; /** The optional end pane displays the same by-key selection that commands edit. */ export declare function useCalendarInspector(args: InspectorShown): BuilderFrameDock | undefined; /** * Install (or clear) the Details render probe. Test use only. * * @param fn - Called each time one event's Details render; `undefined` clears it */ export declare function setCalendarDetailsRenderProbe(fn: (() => void) | undefined): void; export {}; //# sourceMappingURL=inspector.d.ts.map