import type { CSpellSettings } from '@cspell/cspell-types'; import { Document as YamlDocument } from 'yaml'; import { MutableCSpellConfigFile } from '../CSpellConfigFile.js'; import type { TextFile } from '../TextFile.js'; import type { ValueOf1 } from '../types.js'; import type { NodeOrValue, RCfgNode } from '../UpdateConfig/CfgTree.js'; type S = CSpellSettings; export declare class CSpellConfigFileYaml extends MutableCSpellConfigFile { #private; readonly url: URL; readonly yamlDoc: YamlDocument; readonly indent: number; constructor(url: URL, yamlDoc: YamlDocument, indent: number); get settings(): CSpellSettings; addWords(wordsToAdd: string[]): this; serialize(): string; setValue(key: K, value: NodeOrValue>): this; getValue(key: K): ValueOf1; getNode(key: K): RCfgNode> | undefined; getNode(key: K, defaultValue: Exclude, undefined>): Exclude>, undefined>; getNode(key: K, defaultValue: ValueOf1 | undefined): RCfgNode> | undefined; getFieldNode(key: K): RCfgNode | undefined; /** * Removes a value from the document. * @returns `true` if the item was found and removed. */ delete(key: keyof S): boolean; get comment(): string | undefined; set comment(comment: string | undefined); setSchema(schemaRef: string): this; removeAllComments(): this; setComment(key: keyof CSpellSettings, comment: string, inline?: boolean): this; static parse(file: TextFile): CSpellConfigFileYaml; static from(url: URL, settings: CSpellSettings, indent?: number): CSpellConfigFileYaml; } export declare function parseCSpellConfigFileYaml(file: TextFile): CSpellConfigFileYaml; export {}; //# sourceMappingURL=CSpellConfigFileYaml.d.ts.map