/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ValueTypeOf } from "@elaraai/east"; import { PlanPayloadType } from "@elaraai/e3-ui/internal"; import { type FollowedSources } from "../../shared/schedule/follow-sources.js"; import { type PlanEventRows } from "../root/events.js"; import type { PlanRootValue } from "../model.js"; /** The Plan's payload, decoded — what `` returns through the `Plan` carrier (#1191). */ export type PlanValue = ValueTypeOf; /** The Plan's event kinds, as its payload carries them (#1190). */ type PlanEventKinds = PlanValue["events"]; /** The Plan's resource kinds, as its payload carries them (#1190). */ type PlanResourceKinds = PlanValue["resources"]; /** The library pane's tabs, as the payload lists them (#1195). */ type PlanLibraryTabs = PlanValue["library"]; /** The event kinds' drop veto, when the payload has one. */ type PlanEventCanDrop = PlanValue["canDrop"]; /** * Install (or clear) the test frame render probe. Test use only. * * @param fn - Called each time the frame renders; `undefined` clears it */ export declare function setPlanFrameRenderProbe(fn: (() => void) | undefined): void; /** Props of {@link EastChakraPlan}. */ export interface EastChakraPlanProps { /** The Plan root value: the canvas whole. */ value: PlanRootValue; /** Storage key prefix for persisting component state. */ storageKey: string; /** The event kinds' rows (#1192), drawn ahead of the root's own — a Plan of event kinds' payload carries them. */ events?: PlanEventRows | undefined; /** The event kinds themselves (#1190), which the footer counts and the library lists — a Plan of event kinds' payload carries them. */ kinds?: PlanEventKinds | undefined; /** The resource kinds (#1190), which the library's cards name — a Plan of event kinds' payload carries them. */ resources?: PlanResourceKinds | undefined; /** The library pane's tabs (#1195) — the payload carries them; none, no pane. */ library?: PlanLibraryTabs | undefined; /** Whether the Plan has its inspector pane (#1197) — the payload carries it; left out, no pane. */ inspector?: boolean | undefined; /** The event kinds' drop veto (#1196) — the payload carries it: where a drop would put an event, to the refusal's message. */ canDrop?: PlanEventCanDrop | undefined; /** What each source of the slice the frame follows shows (#1344) — each resource kind's, templates list's and tab's; none, a Plan whose payload follows none. */ followed?: FollowedSources | undefined; /** The app's optimiser (#1409) — the payload carries its binding: what the Elara eye calls by name; none, no eye. */ optimise?: { readonly name: string; } | undefined; /** Whether the Plan's Autosave begins on — the payload carries its author's word; left out, off. */ autosave?: boolean | undefined; } /** * Renders the Plan in its frame — see the module docs. * * @param props - The root, its storage key, the event kinds and their rows, the resource kinds, the library's tabs, whether it has its inspector, the event kinds' drop veto, what each source the frame follows shows, and whether its Autosave begins on * @returns The Plan, in its frame */ export declare const EastChakraPlan: import("react").MemoExoticComponent<({ value, storageKey, events, kinds, resources, library: given, inspector, canDrop, followed, optimise, autosave, }: EastChakraPlanProps) => import("react/jsx-runtime").JSX.Element>; /** Props of {@link EastChakraPlanPayload}. */ export interface EastChakraPlanPayloadProps { /** The payload, decoded. */ value: PlanValue; /** Storage key prefix for persisting component state. */ storageKey: string; } /** * Renders a Plan's payload (#1191): its canvas, `plan`, in its frame * ({@link EastChakraPlan}), with its event kinds' rows ahead of the canvas's * own (#1192) — one block per resource kind, then the Unassigned rows', and a * paged kind's a window of its resources at a time (#1199) — its event kinds * counted in the footer, its library in the start pane (#1195), its * inspector in the end pane (#1197), and each source of its slice the frame * follows read through the payload's `narrowed` keys (#1344). * * @param props - The payload and its storage key * @returns The Plan, in its frame */ export declare const EastChakraPlanPayload: import("react").MemoExoticComponent<({ value, storageKey }: EastChakraPlanPayloadProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=index.d.ts.map