import { ComposerProps } from '../../components'; import { Theme } from '@janbox/storefront-ui/theme'; import { SidebarProps } from './sidebar'; import { Resolver } from '../../types'; import { EditorResources } from '../types'; import { EditorHandlers, VariableDefinition } from '../hooks/use-editor'; import { PropsWithChildren, ReactNode } from 'react'; export type EditorProps = PropsWithChildren<{ theme: Theme; insert?: SidebarProps['insert']; resolver?: Resolver; handlers: EditorHandlers; variableDefinitions?: VariableDefinition[]; headerActions?: ReactNode; resources?: EditorResources; nodeResources?: ComposerProps['nodeResources']; }>; export type { EditorHandlers, VariableDefinition, VariableOption } 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, variableDefinitions, headerActions, resources, nodeResources, children, }: EditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;