import { IfcOpenshellInstance } from '@ifcopenshell/wasm/api'; import type { AttributeValueType as NativeAttributeValueType } from '@ifcopenshell/wasm/api'; /** Values decoded by the native WASM attribute typemap. */ export type AttributeValueType = NativeAttributeValueType; export type EntityInfoValue = null | boolean | number | bigint | string | EntityInstance | EntityInstanceInfo | T | EntityInfoValue[]; /** Flat dictionary returned by `EntityInstance.getInfo()`. */ export interface EntityInstanceInfo { id?: number; type: string; [attribute: string]: EntityInfoValue | undefined; } export interface GetInfoOptions { includeIdentifier?: boolean; recursive?: boolean; ignore?: readonly string[]; returnType?: (info: EntityInstanceInfo) => T; } /** IFC entity instance with attribute conveniences. */ export declare class EntityInstance extends IfcOpenshellInstance { constructor(handle: IfcOpenshellInstance); isA(name: string): boolean; isA(withSchema?: boolean): string; get(nameOrIndex: string | number): AttributeValueType; attributes(): string[]; entries(): [string, AttributeValueType][]; /** * Return the entity id, type, and decoded forward attributes. * * With `recursive`, referenced entities are expanded as well. */ getInfo(options?: GetInfoOptions): EntityInstanceInfo; getInfo(options: Omit, 'returnType'> & { returnType: (info: EntityInstanceInfo) => T; }): T; inverseAttributes(): string[]; /** Return entities referenced by the named inverse attribute. */ inverse(name: string): EntityInstance[]; attributeIndex(name: string): number; attributeName(index: number): string; attributeType(nameOrIndex: string | number): string; attributeCategory(name: string): number; set(nameOrIndex: string | number, value: AttributeValueType): void; } //# sourceMappingURL=entity_instance.d.ts.map