import { ParseResultElement } from '@swagger-api/apidom-core'; import Parser, { ParserOptions } from '../Parser.ts'; import File from '../../../File.ts'; export type { default as Parser, ParserOptions } from '../Parser.ts'; export type { default as File, FileOptions } from '../../../File.ts'; /** * @public */ export interface JSONSchemaJSON2020_12ParserOptions extends Omit { /** * Whether to detect a JSON Schema 2020-12 document by its content when the file's media type * is not one of `mediaTypes`. Defaults to `true`. */ readonly detectContent?: boolean; } /** * Parser for JSON Schema 2020-12 documents in JSON format. * * @public */ declare class JSONSchemaJSON2020_12Parser extends Parser { syntacticAnalysis?: 'direct' | 'indirect'; refractorOpts: object; /** * Whether to detect a JSON Schema 2020-12 document by its content when the file's media type * is not one of `mediaTypes`. */ detectContent: boolean; constructor(options?: JSONSchemaJSON2020_12ParserOptions); canParse(file: File): Promise; parse(file: File): Promise; } export default JSONSchemaJSON2020_12Parser;