import type { Config, RuleSeverity } from './config/index.js'; import { YamlParseError } from './errors/yaml-parse-error.js'; import type { SpecVersion } from './oas-types.js'; import { Location } from './ref-utils.js'; import type { ResolveError, Source, ResolvedRefMap, Document } from './resolve.js'; import type { NormalizedNodeType } from './types/index.js'; import type { Referenced } from './typings/openapi.js'; import type { NormalizedOasVisitors, BaseVisitor } from './visitors.js'; export type NonUndefined = string | number | boolean | symbol | bigint | object | Record; export type ResolveResult = { node: T; location: Location; error?: ResolveError | YamlParseError; } | { node: undefined; location: undefined; error?: ResolveError | YamlParseError; }; export type ResolveFn = (node: Referenced, from?: string) => ResolveResult; export type UserContext = { report(problem: Problem): void; location: Location; rawNode: any; rawLocation: Location; resolve: ResolveFn; parentLocations: Record; type: NormalizedNodeType; key: string | number; parent: any; specVersion: SpecVersion; config?: Config; getVisitorData: () => Record; }; export type Loc = { line: number; col: number; }; export type PointerLocationObject = { source: Source; reportOnKey?: boolean; pointer: string; }; export type LineColLocationObject = Omit & { pointer: undefined; start: Loc; end?: Loc; }; export type LocationObject = LineColLocationObject | PointerLocationObject; export type ProblemSeverity = 'error' | 'warn'; export type Problem = { message: string; suggest?: string[]; location?: Partial | Array>; from?: LocationObject; forceSeverity?: RuleSeverity; ruleId?: string; }; export type NormalizedProblem = { message: string; ruleId: string; severity: ProblemSeverity; location: LocationObject[]; from?: LocationObject; suggest: string[]; ignored?: boolean; }; export type WalkContext = { problems: NormalizedProblem[]; specVersion: SpecVersion; config?: Config; visitorsData: Record>; refTypes?: Map; }; export declare function walkDocument(opts: { document: Document; rootType: NormalizedNodeType; normalizedVisitors: NormalizedOasVisitors; resolvedRefMap: ResolvedRefMap; ctx: WalkContext; }): void; //# sourceMappingURL=walk.d.ts.map