UNPKG

@digicatapult/dtdl-parser

Version:

JS tool to parse DTDL defined Ontologies

11 lines (10 loc) 707 B
import type { ModelingException } from '../types/DtdlErr.d.ts'; import type { DtdlObjectModel } from '../types/DtdlOm.d.ts'; import type { Parser } from './interop.js'; export type * from '../types/DtdlErr.d.ts'; export type * from '../types/DtdlOm.d.ts'; export { getInterop } from './interop.js'; export declare const searchForJsonFiles: (directory: string) => string[]; export declare const parseDtdl: (json: string, parserModule: Parser) => DtdlObjectModel | ModelingException; export declare const validateDirectories: (directory: string, parser: Parser, incResolutionException: boolean) => boolean; export declare const parseDirectories: (directory: string, parser: Parser) => DtdlObjectModel | null;