/** * 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 { StudioCellType, StudioComponentType, StudioPageComponent } from "@elaraai/e3-ui/internal"; /** The renderer's payload, decoded. */ type StudioPageValue = ValueTypeOf; /** A listed component. */ type Component = ValueTypeOf; /** One placement. */ type Cell = ValueTypeOf; /** Props of {@link StudioPlacement}. */ export interface StudioPlacementProps { /** The key of the component it places. */ component: string; /** The listed components under that key — one, when the surface lists it once. */ listed: readonly Component[]; /** Where its component's UI keeps its state. */ storageKey: string; } /** * One placement's content: its component's own UI; a placeholder naming its * component's key when the surface lists none under it; an error naming the * key when two listed components share it. * * @param props - The component's key and the components listed under it * @returns The content */ export declare function StudioPlacement({ component: key, listed, storageKey }: StudioPlacementProps): import("react/jsx-runtime").JSX.Element; /** Props of {@link StudioLayout}. */ export interface StudioLayoutProps { /** The layout's placements, in order. */ cells: readonly Cell[]; /** The components the surface lists. */ components: readonly Component[]; /** Where its placements' UIs keep their state. */ storageKey: string; } /** * A layout's placements on the snap grid, each its component's own UI — a * frameless component bare, a placement the surface cannot draw its * placeholder, in a tile. Under a narrow container the tiles stack in row * order. * * @param props - The placements and the listed components * @returns The grid */ export declare function StudioLayout({ cells, components, storageKey }: StudioLayoutProps): import("react/jsx-runtime").JSX.Element; /** Props of {@link EastChakraStudioPage}. */ export interface EastChakraStudioPageProps { /** The payload, decoded. */ value: StudioPageValue; /** The structural storage key. */ storageKey: string; } /** * Renders one page — see the module docs. * * @param props - The payload and its storage key * @returns The page */ export declare const EastChakraStudioPage: import("react").MemoExoticComponent<({ value, storageKey }: EastChakraStudioPageProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=page.d.ts.map