/** @packageDocumentation * @module Editing */ import { AnyEnumerator, Enumeration, EnumerationProps, PrimitiveType, SchemaItemKey, SchemaKey } from "@itwin/ecschema-metadata"; import { SchemaContextEditor } from "./Editor"; import { SchemaItems } from "./SchemaItems"; /** * @alpha * A class allowing you to create schema items of type Enumeration. */ export declare class Enumerations extends SchemaItems { protected get itemTypeClass(): typeof Enumeration; constructor(schemaEditor: SchemaContextEditor); create(schemaKey: SchemaKey, name: string, type: PrimitiveType.Integer | PrimitiveType.String, displayLabel?: string, isStrict?: boolean, enumerators?: AnyEnumerator[]): Promise; /** * Creates an Enumeration through an EnumeratorProps. * @param schemaKey a SchemaKey of the Schema that will house the new object. * @param relationshipProps a json object that will be used to populate the new RelationshipClass. Needs a name value passed in. */ createFromProps(schemaKey: SchemaKey, enumProps: EnumerationProps): Promise; addEnumerator(enumerationKey: SchemaItemKey, enumerator: AnyEnumerator): Promise; setEnumeratorLabel(enumerationKey: SchemaItemKey, enumeratorName: string, label: string | undefined): Promise; setEnumeratorDescription(enumerationKey: SchemaItemKey, enumeratorName: string, description: string | undefined): Promise; } //# sourceMappingURL=Enumerations.d.ts.map