import type { TagToken } from '../common/token.js'; import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js'; export declare enum EntryType { Marker = 0, Element = 1 } interface MarkerEntry { type: EntryType.Marker; } export interface ElementEntry { type: EntryType.Element; element: T['element']; token: TagToken; } export type Entry = MarkerEntry | ElementEntry; export declare class FormattingElementList { private treeAdapter; entries: Entry[]; bookmark: Entry | null; constructor(treeAdapter: TreeAdapter); private _getNoahArkConditionCandidates; private _ensureNoahArkCondition; insertMarker(): void; pushElement(element: T['element'], token: TagToken): void; insertElementAfterBookmark(element: T['element'], token: TagToken): void; removeEntry(entry: Entry): void; /** * Clears the list of formatting elements up to the last marker. * * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker */ clearToLastMarker(): void; getElementEntryInScopeWithTagName(tagName: string): ElementEntry | null; getElementEntry(element: T['element']): ElementEntry | undefined; } export {}; //# sourceMappingURL=formatting-element-list.d.ts.map