/** @packageDocumentation * @module Editing */ import { KindOfQuantity, KindOfQuantityProps, LazyLoadedInvertedUnit, LazyLoadedUnit, OverrideFormat, 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 KindOfQuantity. */ export declare class KindOfQuantities extends SchemaItems { protected get itemTypeClass(): typeof KindOfQuantity; constructor(schemaEditor: SchemaContextEditor); create(schemaKey: SchemaKey, name: string, persistenceUnitKey: SchemaItemKey, displayLabel?: string): Promise; createFromProps(schemaKey: SchemaKey, koqProps: KindOfQuantityProps): Promise; /** * * @param koqKey A schemaItemKey of the editing KindOfQuantity. * @param format A schemaItemKey of a Format. * @param isDefault .is set to false when not explicitly passed. */ addPresentationFormat(koqKey: SchemaItemKey, format: SchemaItemKey, isDefault?: boolean): Promise; addPresentationOverrideFormat(koqKey: SchemaItemKey, overrideFormat: OverrideFormat, isDefault?: boolean): Promise; /** * @param parent A SchemaItemKey of the parent Format. * @param unitLabelOverrides The list of Unit (or InvertedUnit) and label overrides. The length of list should be equal to the number of units in the parent Format. */ createFormatOverride(parent: SchemaItemKey, precision?: number, unitLabelOverrides?: Array<[LazyLoadedUnit | LazyLoadedInvertedUnit, string | undefined]>): Promise; } //# sourceMappingURL=KindOfQuantities.d.ts.map