import type { EnterpriseCategoryId, EnterpriseLocationId, EnterpriseLocationInstanceId } from '@mappedin/mvf-cms'; import type { GeometryFeature, GeometryId } from '@mappedin/mvf-core'; import type { LocationCategoryId, LocationId, LocationInstanceId } from '@mappedin/mvf-locations'; import type { Flags } from '@mappedin/mvf-navigation-flags'; import type { AreaId } from '../extensions/area.js'; import type { WindowId } from '../extensions/window.js'; import type { NodeId, ObstructionId } from '../types/core.js'; import type { SpaceId } from '../types/core.js'; import type { MVFv2_STANDARD_MVFv3 } from './index.js'; export declare function toSpaceId(id: GeometryId): SpaceId; export declare function toObstructionId(id: GeometryId): ObstructionId; export declare function convertGeometryId(id: GeometryId, obstructionIds: Set): SpaceId | ObstructionId; export declare function toWindowId(id: GeometryId): WindowId; export declare function convertLocationInstanceId(id: LocationInstanceId): EnterpriseLocationInstanceId; export declare function convertLocationId(id: LocationId): EnterpriseLocationId; export declare function convertLocationCategoryId(id: LocationCategoryId): EnterpriseCategoryId; export type GeometryIdConverter = (id: GeometryId) => SpaceId | ObstructionId; export declare function generateIdConverter(obstructionIds: Set): GeometryIdConverter; export declare function convertAreaId(id: GeometryId): AreaId; export declare function convertNodeToSpaceId(id: NodeId): SpaceId; export declare function splitMultiPartGeometryFeatureWithNewId(feature: GeometryFeature, newId: T, kind?: string): PartiallyTransformedGeometryFeature[]; /** * A geometry feature that has been partially transformed into v2. In particular, * the `id` has been converted to the new ID type, and the `kind` has been added. * These are also probably not multi geometry features, but this is not actually enforced. * */ export type PartiallyTransformedGeometryFeature = Omit & { properties: Omit & { id: T; kind: string | undefined; }; }; export type MappedGeometry = Map[]; anchors: { geometryId: T; floorId: string; }[]; }>; export declare function mapGeometryToOtherIds(geometry: { feature: GeometryFeature; floorId: string; }[], xIds: { has: (id: GeometryId) => boolean; }, // Probably a set, but can be any object with that function convertToX: (id: GeometryId) => T, kindsMap: Map): MappedGeometry; export type GeometryMaps = { space: MappedGeometry; obstruction: MappedGeometry; area: MappedGeometry; window: MappedGeometry; object: MappedGeometry; }; export declare function createGeometryMaps(v3: Partial>): GeometryMaps; export declare function createKindsMap(v3: Pick): Map; export declare function someFlags(flags: Flags[]): Flags; //# sourceMappingURL=converterUtils.d.ts.map