UNPKG

xmlbuilder2

Version:
62 lines (61 loc) 1.91 kB
import { XMLBuilderCBOptions, YAMLCBWriterOptions } from "../interfaces"; import { BaseCBWriter } from "./BaseCBWriter"; /** * Serializes XML nodes. */ export declare class YAMLCBWriter extends BaseCBWriter<YAMLCBWriterOptions> { private _rootWritten; private _additionalLevel; /** * Initializes a new instance of `BaseCBWriter`. * * @param builderOptions - XML builder options */ constructor(builderOptions: XMLBuilderCBOptions); /** @inheritdoc */ frontMatter(): string; /** @inheritdoc */ declaration(version: "1.0", encoding?: string, standalone?: boolean): string; /** @inheritdoc */ docType(name: string, publicId: string, systemId: string): string; /** @inheritdoc */ comment(data: string): string; /** @inheritdoc */ text(data: string): string; /** @inheritdoc */ instruction(target: string, data: string): string; /** @inheritdoc */ cdata(data: string): string; /** @inheritdoc */ attribute(name: string, value: string): string; /** @inheritdoc */ openTagBegin(name: string): string; /** @inheritdoc */ openTagEnd(name: string, selfClosing: boolean, voidElement: boolean): string; /** @inheritdoc */ closeTag(name: string): string; /** @inheritdoc */ beginElement(name: string): void; /** @inheritdoc */ endElement(name: string): void; /** * Produces characters to be prepended to a line of string in pretty-print * mode. */ private _beginLine; /** * Produces an indentation string. * * @param level - depth of the tree * @param suppressArray - whether the suppress array marker */ private _indent; /** * Produces a YAML key string delimited with double quotes. */ private _key; /** * Produces a YAML value string delimited with double quotes. */ private _val; }