/** * 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 { FuncBindingType, 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 series the Plan's event kinds land on, as its payload carries them (#1541). */ type PlanLandings = PlanValue["landings"]; /** The library pane's tabs, as the payload lists them (#1195). */ type PlanLibraryTabs = PlanValue["library"]; /** The Plan's link kinds, as its payload carries them (#1541, U10). */ type PlanLinkKinds = PlanValue["linkKinds"]; /** The Plan's `canConnect`, decoded. */ type PlanCanConnect = Extract["value"]; /** * 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; /** Where the event kinds' events land on the root's own rows (#1192, #1541) — a Plan of event kinds' payload carries it. */ 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 series the event kinds land on (#1541), which the library's cards and the inspector name — a Plan of event kinds' payload carries them. */ landings?: PlanLandings | 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; /** What each source of the slice the frame follows shows (#1344) — each templates list's and tab's; none, a Plan whose payload follows none. */ followed?: FollowedSources | undefined; /** * The app's optimiser (#1409, east-workspace#1622) — the payload carries its binding: what the Elara eye calls by * name, and the records it lists in `drafts` and reads; none, no eye. */ optimise?: ValueTypeOf | undefined; /** Whether the Plan's Autosave begins on — the payload carries its author's word; left out, off. */ autosave?: boolean | undefined; /** The link kinds (#1541, U10), whose links the canvas draws beside the root's own — the payload carries them; none, a Plan with none. */ linkKinds?: PlanLinkKinds | undefined; /** The Plan's veto over the link a Connect would draw (#1541, U10): the payload's `canConnect`; none, every pair is allowed. */ canConnect?: PlanCanConnect | undefined; } /** * Renders the Plan in its frame — see the module docs. * * @param props - The root, its storage key, the event kinds and where they land, the series they land on, 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, landings: givenLandings, library: given, inspector, followed, optimise, autosave, linkKinds, canConnect, }: 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}), its event kinds' events placed on the canvas's own * rows by the payload's seam (#1192, #1541) — over rows read whole, the * Unassigned rows after them — 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