blob: fe968891b3f38a7c9f4a8897c9ee862251ae4ff3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import type { Document } from '../doc/Document.js';
import type { Alias } from '../nodes/Alias.js';
import type { ToStringOptions } from '../options.js';
export declare type StringifyContext = {
actualString?: boolean;
allNullValues?: boolean;
anchors: Set<string>;
doc: Document;
forceBlockIndent?: boolean;
implicitKey?: boolean;
indent: string;
indentStep: string;
indentAtStart?: number;
inFlow: boolean | null;
inStringifyKey?: boolean;
options: Readonly<Required<Omit<ToStringOptions, 'collectionStyle' | 'indent'>>>;
resolvedAliases?: Set<Alias>;
};
export declare function createStringifyContext(doc: Document, options: ToStringOptions): StringifyContext;
export declare function stringify(item: unknown, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
|