import { JsonSchema } from '../../schemas/index.js'; import type { GraphModel } from './GraphModel.js'; /** * Writes the schema form of a graph: an object schema whose properties are the node labels and edge types. * This is the form the kernel reads a graph from. The annotations are the ones of the kernel's graph definition. */ export declare class GraphSchemaWriter { /** * Writes the schema of a graph. * @param model - The {@link GraphModel}. * @returns The schema as JSON. * @throws {NestedObjectInGraph} When a node or an edge has an object property. * @throws {UnknownGraphNode} When an edge connects a type that is not a node of the graph. */ write(model: GraphModel): string; /** * Gets the properties of a node or edge type, as they are named in the graph. * @param type - The node or edge type. * @param excluded - Names of members that are not properties. * @returns The property names with their schemas. * @throws {NestedObjectInGraph} When a property is an object. */ propertiesOf(type: Function, excluded: readonly string[]): Record; private element; private assertProperty; private labelOf; } //# sourceMappingURL=GraphSchemaWriter.d.ts.map