import { Theme } from '@janbox/storefront-ui/theme'; import { SidebarProps } from './sidebar'; import { Resolver } from '../../types'; import { EditorResources } from '../types'; import { EditorHandlers } from '../hooks/use-editor'; import { PropsWithChildren, ReactNode } from 'react'; import { NodeSchema } from '../../ai'; export type EditorProps = PropsWithChildren<{ theme: Theme; insert?: SidebarProps['insert']; resolver?: Resolver; handlers: EditorHandlers; headerActions?: ReactNode; /** Edit-time resources; `textVariables` and `nodes` also go to the canvas `Composer`. */ resources?: EditorResources; /** Schemas for the extra nodes in `resolver`, so the AI Copilot can use them. Read once at mount. */ nodeSchemas?: readonly NodeSchema[]; }>; export type { EditorHandlers } from '../hooks/use-editor'; export type { EditorResources, ImageSource } from '../types'; export type { LinkComponent, LinkComponentProps } from '../../lib'; export type { InsertTemplate, InsertTemplateGroup } from './sidebar/insert-action'; export declare const Editor: ({ theme, insert, resolver, handlers, headerActions, resources, nodeSchemas, children, }: EditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;