import type { RegisterComponent } from './types'; /** * Create a simple registry for toolbar components. * * @returns A registry object with a `register` method and a `components` array. * * @example * ```ts * const registry = createToolbarRegistry(); * * registry.register([ * { * type: 'toolbar', * key: 'primary-toolbar', * component: ({ children }) =>
{children}
, * }, * { * type: 'section', * key: 'section-1', * rank: 1, * parents: [{ type: 'toolbar', key: 'primary-toolbar' }], * component: ({ children }) =>
{children}
, * }, * { * type: 'group', * key: 'group-1', * rank: 1, * parents: [{ type: 'section', key: 'section-1' }], * component: ({ children }) =>
{children}
, * }, * ]); */ export declare const createComponentRegistry: () => { register: (newComponents: RegisterComponent[]) => void; safeRegister: (newComponents: RegisterComponent[]) => void; components: RegisterComponent[]; };