import { JSONDocument } from "./json-document"; import * as Yaml from "yaml-ast-parser-custom-tags"; import { DocumentType, GlobalsConfig, Referenceables, References, SubStack } from "../../model"; import { ASTNode } from "./ast-node"; import { ExternalImportsCallbacks } from "./external-import-ast-node"; import { ErrorCode } from "./validation-result"; export interface Problem { message: string; location: { start: number; end: number; }; code: ErrorCode; } export interface ParentParams { uri: string; documentType: DocumentType; } export declare class YAMLDocument extends JSONDocument { uri: string; root: ASTNode | null; errors: Problem[]; warnings: Problem[]; globalsConfig: GlobalsConfig; referenceables: Referenceables; references: References; parameters: string[]; documentType: DocumentType; parentParams?: ParentParams; externalImportCallbacks: ExternalImportsCallbacks; constructor(uri: string, documentType: DocumentType, yamlDoc: Yaml.YAMLNode | void, callbacks?: ExternalImportsCallbacks, parentParams?: ParentParams); getSchemas(schema: any, doc: any, node: ASTNode): any[]; getNodeFromOffset(offset: number): ASTNode; collectSubStacks(): [boolean, SubStack[]]; private recursivelyBuildAst; }