import Definition from './Definition'; import { AttributesField, ConstantsField, ImportsField, MetadataField, Options, ReferencesField, SchemaStructure, ShapesField, SubsetsField, Config } from './types'; export default class Schematic { data: SchemaStructure; path: string; name: string; options: Options; metadata: MetadataField; attributes: Definition[]; constants: ConstantsField; imports: ImportsField; shapes: ShapesField; subsets: SubsetsField; references: ReferencesField; referenceSchematics: { [key: string]: Schematic; }; /** * Load and parse a schema, either as a JSON string, or as a JS object. */ constructor(filePath: string, data: SchemaStructure, options: Options); /** * Throw an error prefixed with the schema name. */ throwError(error: string): void; /** * Setup the state of the schema. */ setup(): void; /** * Set schema attributes. */ setAttributes(attributes: AttributesField): void; /** * Set schema constants. */ setConstants(constants: ConstantsField): void; /** * Set schema imports. */ setImports(imports: ImportsField): void; /** * Set schema metadata. */ setMetadata(metadata: MetadataField): void; /** * Set the name of the schema. */ setName(name: string): void; /** * Set reference schemas. */ setReferences(references: ReferencesField): void; /** * Set shapes for the schema. */ setShapes(shapes: ShapesField): void; /** * Set subsets of the schema. */ setSubsets(subsets: SubsetsField): void; } //# sourceMappingURL=Schematic.d.ts.map