import * as react_jsx_runtime from 'react/jsx-runtime'; import { BlockSchema, BlockMeta, CmssyPageData, CmssyFormDefinition, CmssyLayoutGroup } from '@cmssy/core'; import { B as BlockDefinition } from './registry-CwJ2cby4.cjs'; import 'react'; interface EditBridgeConfig { editorOrigin: string | string[]; schemas?: Record; blockMeta?: Record; } type PatchMap = Partial>>; interface InsertedBlock { blockId: string; blockType: string; content: Record; style?: Record; advanced?: Record; index: number; } interface EditBridgeState { patches: PatchMap; patchesStyle: PatchMap; patchesAdvanced: PatchMap; selected: string | null; inserted: InsertedBlock[]; order: string[] | null; removed: string[]; } interface BridgePage { id: string; blocks: ReadonlyArray<{ id: string; type: string; }>; } declare function useEditBridge(page: BridgePage, config: EditBridgeConfig): EditBridgeState; interface CmssyEditablePageProps { page: CmssyPageData | null; blocks: BlockDefinition[]; locale?: string; defaultLocale?: string; enabledLocales?: string[]; edit: EditBridgeConfig; category?: string; forms?: Record; data?: Record; resolvedContent?: Record>; appContext?: Record; } declare function CmssyEditablePage({ page, blocks, locale, defaultLocale, enabledLocales, edit, category, forms, data, resolvedContent, appContext, }: CmssyEditablePageProps): react_jsx_runtime.JSX.Element | null; interface CmssyLazyEditorProps { page: CmssyPageData | null; locale?: string; defaultLocale?: string; enabledLocales?: string[]; edit: EditBridgeConfig; forms?: Record; data?: Record; resolvedContent?: Record>; appContext?: Record; load: () => Promise<{ blocks: BlockDefinition[]; category?: string; }>; } declare function CmssyLazyEditor({ load, ...props }: CmssyLazyEditorProps): react_jsx_runtime.JSX.Element; interface CmssyEditableLayoutProps { groups: CmssyLayoutGroup[]; blocks: BlockDefinition[]; position: string; locale?: string; defaultLocale?: string; enabledLocales?: string[]; edit: EditBridgeConfig; data?: Record; resolvedContent?: Record>; appContext?: Record; } declare function CmssyEditableLayout({ groups, blocks, position, locale, defaultLocale, enabledLocales, edit, data, resolvedContent, appContext, }: CmssyEditableLayoutProps): react_jsx_runtime.JSX.Element | null; interface CmssyLazyLayoutProps { groups: CmssyLayoutGroup[]; position: string; locale?: string; defaultLocale?: string; enabledLocales?: string[]; edit: EditBridgeConfig; data?: Record; resolvedContent?: Record>; appContext?: Record; load: () => Promise<{ blocks: BlockDefinition[]; }>; } declare function CmssyLazyLayout({ load, ...props }: CmssyLazyLayoutProps): react_jsx_runtime.JSX.Element; export { CmssyEditableLayout, type CmssyEditableLayoutProps, CmssyEditablePage, type CmssyEditablePageProps, CmssyLazyEditor, type CmssyLazyEditorProps, CmssyLazyLayout, type CmssyLazyLayoutProps, type EditBridgeConfig, type EditBridgeState, type PatchMap, useEditBridge };