/** @packageDocumentation * @module Editing */ import { SchemaItem, SchemaItemKey, SchemaItemProps, SchemaItemType, SchemaKey } from "@itwin/ecschema-metadata"; import { SchemaContextEditor } from "./Editor"; import { MutableSchema } from "./Mutable/MutableSchema"; export type CreateSchemaItem = (schema: MutableSchema) => (name: string, ...args: any[]) => Promise; export type CreateSchemaItemFromProps = (props: SchemaItemProps, ...args: any[]) => Promise; /** * @internal * A class allowing you to edit the schema item base class. */ export declare abstract class SchemaItems { protected schemaItemType: SchemaItemType; protected schemaEditor: SchemaContextEditor; protected abstract get itemTypeClass(): typeof SchemaItem; constructor(schemaItemType: SchemaItemType, schemaEditor: SchemaContextEditor); /** * Sets the name of the SchemaItem. * @param itemKey The SchemaItemKey of the SchemaItem. * @param name The new name of the SchemaItem. * @throws ECSchemaError if `name` does not meet the criteria for a valid EC name */ setName(itemKey: SchemaItemKey, name: string): Promise; /** * Sets the SchemaItem description. * @param schemaItemKey The SchemaItemKey of the SchemaItem * @param description The new description to set. */ setDescription(schemaItemKey: SchemaItemKey, description: string): Promise; /** * Sets the SchemaItem display label. * @param schemaItemKey The SchemaItemKey of the SchemaItem * @param label The new label to set. */ setDisplayLabel(schemaItemKey: SchemaItemKey, label: string): Promise; protected getSchema(schemaKey: SchemaKey): Promise; protected getSchemaItem(schemaItemKey: SchemaItemKey, itemConstructor: T): Promise>; protected createSchemaItem(schemaKey: SchemaKey, type: SchemaItemType, create: CreateSchemaItem, name: string, ...args: any[]): Promise; protected createSchemaItemFromProps(schemaKey: SchemaKey, type: SchemaItemType, create: CreateSchemaItem, props: SchemaItemProps): Promise; } //# sourceMappingURL=SchemaItems.d.ts.map