/** @packageDocumentation * @module Editing */ import { Mixin, MixinProps, NavigationPropertyProps, RelationshipClass, SchemaItemKey, SchemaKey, StrengthDirection } from "@itwin/ecschema-metadata"; import { SchemaContextEditor } from "./Editor"; import { ECClasses } from "./ECClasses"; import { NavigationProperties } from "./Properties"; /** * @alpha * A class extending ECClasses allowing you to create schema items of type Mixin. */ export declare class Mixins extends ECClasses { protected get itemTypeClass(): typeof Mixin; constructor(schemaEditor: SchemaContextEditor); /** * Allows access for editing of NavigationProperty attributes. */ readonly navigationProperties: NavigationProperties; create(schemaKey: SchemaKey, name: string, appliesTo: SchemaItemKey, displayLabel?: string, baseClassKey?: SchemaItemKey): Promise; /** * Creates a MixinClass through a MixinProps. * @param schemaKey a SchemaKey of the Schema that will house the new object. * @param mixinProps a json object that will be used to populate the new MixinClass. Needs a name value passed in. */ createFromProps(schemaKey: SchemaKey, mixinProps: MixinProps): Promise; addMixin(entityKey: SchemaItemKey, mixinKey: SchemaItemKey): Promise; createNavigationProperty(mixinKey: SchemaItemKey, name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise; /** * Creates a Navigation Property through a NavigationPropertyProps. * @param classKey a SchemaItemKey of the Mixin that will house the new property. * @param navigationProps a json object that will be used to populate the new Navigation Property. */ createNavigationPropertyFromProps(classKey: SchemaItemKey, navigationProps: NavigationPropertyProps): Promise; } //# sourceMappingURL=Mixins.d.ts.map