UNPKG

524 BTypeScriptView Raw
1import { Collection } from '../nodes/Collection.js';
2import { StringifyContext } from './stringify.js';
3interface StringifyCollectionOptions {
4 blockItemPrefix: string;
5 flowChars: {
6 start: '{';
7 end: '}';
8 } | {
9 start: '[';
10 end: ']';
11 };
12 itemIndent: string;
13 onChompKeep?: () => void;
14 onComment?: () => void;
15}
16export declare function stringifyCollection(collection: Readonly<Collection>, ctx: StringifyContext, options: StringifyCollectionOptions): string;
17export {};