import type { ExperienceNode } from '../infer.js'; /** * Returns true for a composition node holding a form button. * * A node's own `__typename` is always `CompositionStructureNode` or * `CompositionComponentNode`, never a content type key, so the type has to be * read off the component the node wraps. */ export declare const isFormButtonNode: (node: ExperienceNode) => boolean; /** * Separates a form's buttons from the rest of its composition, at any depth. * * Editors place Next, Previous and Submit wherever they like — often each in its * own row, which stacks them and stretches them to the width of their column. * Pulling them out lets a template lay them out as one footer regardless of how * the form was authored. Rows and columns left empty afterwards are dropped, so * they don't render as blank gaps. * * @returns `content` with the buttons removed, and the `buttons` in the order * they were authored. */ export declare function partitionFormNodes(nodes: ExperienceNode[]): { content: ExperienceNode[]; buttons: ExperienceNode[]; };