/** * createStablePluginArray * * Creates a memoized plugin array that only changes identity when * the plugin references change. Filters out null/undefined entries. */ import type { PuckPlugin } from '../plugin/P1Plugin.js'; /** * Creates a stable plugin array from the given plugins. * * Returns the same array reference if the same plugin instances * are passed in the same order. Filters out null/undefined entries. * * This is useful for consumers who manually assemble plugin arrays * outside of useP1Editor and want to avoid unnecessary Puck re-renders. * * @param plugins - Plugin instances to include * @returns A stable array of non-null plugins * * @example * ```tsx * const plugins = createStablePluginArray(p1Plugin, aiPlugin, pccPlugin); * return ; * ``` */ export declare function createStablePluginArray(...plugins: PuckPlugin[]): PuckPlugin[];