import type { ContentModelBlockGroup, DomToModelContext } from 'roosterjs-content-model-types'; /** * @internal */ interface FormatStateContext extends DomToModelContext { /** * An optional stack of parent elements to process. When provided, the child nodes of current parent element will be ignored, * but use the top element in this stack instead in childProcessor. */ nodeStack?: Node[]; } /** * @internal * In order to get format, we can still use the regular child processor. However, to improve performance, we don't need to create * content model for the whole doc, instead we only need to traverse the tree path that can arrive current selected node. * This "reduced" child processor will first create a node stack that stores DOM node from root to current common ancestor node of selection, * then use this stack as a faked DOM tree to create a reduced content model which we can use to retrieve format state */ export declare function reducedModelChildProcessor(group: ContentModelBlockGroup, parent: ParentNode, context: FormatStateContext): void; export {};