/** * Editor mount hook registry — append-only hooks called when a React-managed * editor container is mounted into the DOM with a known owner grid. * * This is the augmentation point that lets feature secondary entries * (e.g. `@toolbox-web/grid-react/features/editing`) install per-editor * lifecycle behaviour (such as the `before-edit-close` blur bridge) * without coupling the central adapter / column-config files to the * editing feature. Mirrors how core grid plugins augment the grid via * `registerPlugin()`. * * @packageDocumentation * @internal */ /** * Hook called when an editor container is mounted. Returning a function * registers a teardown that runs when the editor is released. */ export type EditorMountHook = (ctx: { container: HTMLElement; gridEl: HTMLElement; }) => (() => void) | void; /** * Install an editor-mount hook. Called by feature secondary entries * (e.g. `features/editing`) on import. Idempotent across hot-reload * boundaries is NOT guaranteed; consumers should import once. * * @internal Plugin API */ export declare function registerEditorMountHook(hook: EditorMountHook): void; /** * Run all registered editor-mount hooks for a freshly mounted editor. * Returns a combined teardown that invokes each hook's teardown in * registration order. * * @internal Adapter / column-config use only. */ export declare function notifyEditorMounted(container: HTMLElement, gridEl: HTMLElement): () => void; //# sourceMappingURL=editor-mount-hooks.d.ts.map