import { Bounds, ElementBuilder, Environment, Option, Maybe } from '@glimmer/interfaces'; import { Stack } from '@glimmer/util'; import { AttrNamespace, SimpleComment, SimpleElement, SimpleNode, SimpleText } from '@simple-dom/interface'; import { CursorImpl } from '../bounds'; import { CURSOR_STACK, NewElementBuilder, RemoteLiveBlock } from './element-builder'; export declare const SERIALIZATION_FIRST_NODE_STRING = "%+b:0%"; export declare function isSerializationFirstNode(node: SimpleNode): boolean; export declare class RehydratingCursor extends CursorImpl { readonly startingBlockDepth: number; candidate: Option; openBlockDepth: number; injectedOmittedNode: boolean; constructor(element: SimpleElement, nextSibling: Option, startingBlockDepth: number); } export declare class RehydrateBuilder extends NewElementBuilder implements ElementBuilder { private unmatchedAttributes; [CURSOR_STACK]: Stack; blockDepth: number; startingBlockOffset: number; constructor(env: Environment, parentNode: SimpleElement, nextSibling: Option); get currentCursor(): Option; get candidate(): Option; set candidate(node: Option); disableRehydration(nextSibling: Option): void; enableRehydration(candidate: Option): void; pushElement( /** called from parent constructor before we initialize this */ this: RehydrateBuilder | (NewElementBuilder & Partial>), element: SimpleElement, nextSibling?: Maybe): void; private clearMismatch; __openBlock(): void; __closeBlock(): void; __appendNode(node: SimpleNode): SimpleNode; __appendHTML(html: string): Bounds; protected remove(node: SimpleNode): Option; private markerBounds; __appendText(string: string): SimpleText; __appendComment(string: string): SimpleComment; __openElement(tag: string): SimpleElement; __setAttribute(name: string, value: string, namespace: Option): void; __setProperty(name: string, value: string): void; __flushElement(parent: SimpleElement, constructing: SimpleElement): void; willCloseElement(): void; getMarker(element: HTMLElement, guid: string): Option; __pushRemoteElement(element: SimpleElement, cursorId: string, insertBefore: Maybe): Option; didAppendBounds(bounds: Bounds): Bounds; } export declare function rehydrationBuilder(env: Environment, cursor: CursorImpl): ElementBuilder; //# sourceMappingURL=rehydrate-builder.d.ts.map