import { SimpleName } from '../SimpleName.ts'; import { RstNode } from '../RstNode/RstNode.ts'; import { RstGeneratorOptions } from './RstGeneratorOptions.ts'; import { RstCompiler } from '../RstCompiler.ts'; import { SubstitutionResolver } from '../Parser/Resolver/SubstitutionResolver.ts'; import { HtmlAttrResolver } from '../Parser/Resolver/HtmlAttrResolver.ts'; import { RstDocument } from '../RstNode/Block/Document.ts'; import { RstNodeGenerator } from './RstGenerator.ts'; import { HtmlAttributeStore } from './HtmlAttributeStore.ts'; import { SimpleNameResolver } from '../Parser/Resolver/SimpleNameResolver.ts'; import { RstFootnoteDef } from '../RstNode/ExplicitMarkup/FootnoteDef.ts'; import { RstFootnoteRef } from '../RstNode/Inline/FootnoteRef.ts'; import { RstParserOutput } from '../Parser/RstParserState.ts'; import { RstCitationRef } from '../RstNode/Inline/CitationRef.ts'; import { RstCitationDef } from '../RstNode/ExplicitMarkup/CitationDef.ts'; import { RstHyperlinkRef } from '../RstNode/Inline/HyperlinkRef.ts'; export type RstGeneratorInput = { basePath: string; currentDocPath: string; docs: Array<{ docPath: string; parserOutput: RstParserOutput; }>; }; export type RstGeneratorOutput = { body: string; header: string; downloads: Array<{ srcPath: string; destPath: string; }>; }; type LinePrefix = { val: string; replacementAfterOnce?: string; }; type VisitChildren = () => void; export declare class RstGeneratorState { readonly opts: RstGeneratorOptions; private readonly _generatorInput; private readonly _compiler; private readonly _basePath; private readonly _currentDocPath; private readonly _currentParserOutput; private readonly _docsCache; private readonly _simpleNameCache; private _globalHeaderBuffer; private _downloads; private _outputBuffers; private _enableUnicodeConversion; private _enableForcedHtmlMode; private _disableLineBreaksBetweenBlocks; private _disableCommentMarkup; constructor(opts: RstGeneratorOptions, generatorInput: RstGeneratorInput, compiler: RstCompiler); get root(): RstDocument; get generatorOutput(): RstGeneratorOutput; get debugInfo(): string; get simpleNameResolver(): SimpleNameResolver; get substitutionResolver(): SubstitutionResolver; get htmlAttrResolver(): HtmlAttrResolver; resolveExternalDoc(srcNode: RstNode, targetPath: string): { externalUrl: string; externalLabel?: string; }; canResolveExternalRef(targetRef: SimpleName): boolean; resolveExternalRef(srcNode: RstNode, targetRef: SimpleName): { externalUrl: string; externalLabel?: string; }; resolveHyperlinkRefToUrl(node: RstHyperlinkRef): string; resolveNodeToUrl(node: RstNode): string; resolveSimpleNameToUrl(simpleName: SimpleName): string | null; resolveCitationDef(citationRef: RstCitationRef): RstCitationDef; resolveCitationDefBacklinks(citationDef: RstCitationDef): Array; resolveFootnoteDef(footnoteRef: RstFootnoteRef): RstFootnoteDef; resolveFootnoteDefBacklinks(footnoteDef: RstFootnoteDef): Array; resolveFootnoteDefLabel(footnoteDef: RstFootnoteDef): string; resolveFootnoteRefLabel(footnoteRef: RstFootnoteRef): string; visitNode(node?: RstNode | null): void; visitNodes(nodes: ReadonlyArray): void; private get _currentBuffer(); hasLinePrefix(): boolean; private getAndUpdateLinePrefix; usePrefix(prefix: LinePrefix, visitChildren: VisitChildren): void; useIndent(visitChildren: VisitChildren): void; useNodeGenerator(nodeGenerator: RstNodeGenerator, visitChildren: VisitChildren): void; useUnicodeConversion(visitChildren: VisitChildren): void; get isUsingUnicodeConversion(): boolean; useForcedHtmlMode(visitChildren: VisitChildren): void; get isUsingForcedHtmlMode(): boolean; useNoLineBreaksBetweenBlocks(visitChildren: VisitChildren): void; get isUsingNoLineBreaksBetweenBlocks(): boolean; useNoCommentMarkup(visitChildren: VisitChildren): void; get isUsingNoCommentMarkup(): boolean; registerGlobalHeader(key: string, text: string): void; registerDownload(targetPath: string): { downloadSrc: string; downloadDest: string; fileName: string; }; getChildrenText(visitChildren: VisitChildren): string; writeText(text: string): void; writeTextWithLinePrefix(text: string): void; writeLine(text?: string | null): void; writeLineVisitor(visitChildren: VisitChildren): void; writeLineMdContainer(label: string, root: RstNode, visitChildren: VisitChildren): void; writeLineHtmlTag(tag: string, node: RstNode | null, visitChildren?: VisitChildren): void; writeLineHtmlTagWithAttr(tag: string, node: RstNode | null, attrs: HtmlAttributeStore, visitChildren?: VisitChildren): void; writeLineHtmlTagInSameLine(tag: string, node: RstNode | null, visitChildren: VisitChildren): void; writeLineHtmlTagWithAttrInSameLine(tag: string, node: RstNode | null, attrs: HtmlAttributeStore, visitChildren: VisitChildren): void; private writeTextHtmlTagStart; private writeTextHtmlTagEnd; writeLineHtmlComment(text?: string): void; writeLineMdComment(text?: string): void; } export {}; //# sourceMappingURL=RstGeneratorState.d.ts.map