import { MpSdk } from "../bundle/sdk"; import { ISweep, SweepColor, DEGREE, CustomMapFloorData, CUSTOM_MAP_MODE } from "./types"; import 'notyf/notyf.min.css'; declare let isMinimapNavigation: boolean; interface FloorData { id: string; label: string; sequence: number; } declare const mapPositions: string[]; declare function setMap(mpSdk: MpSdk, appKey: string, mapId: string, openOnLoad?: boolean): Promise; declare function locateAvatar(): Promise; declare function showMinimap(): void; declare function hideMinimap(): void; declare function resetSweepMarkerColors(): void; declare function renderOverlaySweep(item: ISweep, socketId: string, color: string): void; declare function showDirection(): void; /** * Toggles the visibility of the minimap. This will display a toast notification if the CDN is unavailable or has not * finished fetching map data */ declare function toggleMinimapVisibility(): void; /** * Changes the default color of an individual or multiple sweep buttons inside the minimap * @param {SweepColor | Array} payload - An object or array of objects containing the sweepId and new color of the sweep button * @returns {void} */ declare function setSweepMarkerColor(payload: SweepColor | Array): void; declare function toggleMinimapFloor(action: string): FloorData; /** * Returns an array of objects containing the floor data of a space. This function will only have data if you are displaying * a standalone minimap */ declare function getFloorsInSpace(): FloorData[]; /** * Renders the minimap of a given space without the need of rendering the space itself in an iFrame * @param modelId - model id of the space * @param appKey - valid matterport appKey * @param mapId - id of an html element where the map will be attached to * @returns */ declare function setStandaloneMap(modelId: string, appKey: string, mapId: string, floorSequence?: number): Promise; /** * This function creates the dropdown (HTLMElement) for available positions that Minimap can be set * @param mapPositions An array of strings representing the minimap positions (e.g., 'topLeft','bottomRight'). * @returns HTLMElement with the specified position options. */ declare function createDropdown(): Promise; /** * Sets Minimap Position anywhere inside Space as selected by User * @param position Accepts a string (bottomLeft/bottomRight/topRight/topLeft) * */ declare function setMinimapPosition(mapContainer: HTMLElement, position: string): Promise; /** * Creates and returns a custom minimap DOM element containing a canvas. * @returns {HTMLDivElement} The custom minimap element. */ declare function setupCustomMinimapPane(): Promise; /** * Initializes and renders the custom minimap UI. * @param mpSdk - The Matterport SDK instance */ declare function setCustomMap(mpSdk: MpSdk): Promise; /** * Sets the current rotation value of the custom minimap. * @param {DEGREE} rotation */ declare function setCustomMinimapRotation(rotation: DEGREE): void; /** * Gets the current rotation value of the custom minimap. * @returns {_minimapRotation} Minimap rotation in degrees. */ declare function getCustomMinimapRotation(): DEGREE; /** * Subscribes to floor change events in the Matterport model. * @param mpSdk */ declare function subscribeToFloorChanges(mpSdk: MpSdk): Promise; /** * Generates a custom minimap and transformation parameters. * @param mpSdk - The Matterport SDK instance used to access and manipulate the space data. * @param scaling - Scale factor to resize the minimap (default is 10) * @param translate - Translation factor applied to the minimap (default is 1) * @param xOffset - Horizontal offset applied to shift the minimap along the X-axis (default is 0). * @param yOffset - Vertical offset applied to shift the minimap along the Y-axis (default is 0). */ declare function generateCustomMinimap(mpSdk: MpSdk): Promise; /** * Updates the global minimum and maximum X and Y values * based on the given coordinates. Used for determining * bounding box extents of all sweep positions. * @param x - The X coordinate (typically item.position.x) * @param y - The Y coordinate (typically item.position.z mapped to Y) */ declare function setMinAndMax(x: any, y: any): void; declare function setCustomMapScale(scale: number): void; declare function getCustomMapScale(): number; declare function setCustomMapTranslate(translate: number): void; declare function getCustomMapTranslate(): number; declare function setCustomMapXOffset(xOffset: number): void; declare function getCustomMapXOffset(): number; declare function setCustomMapYOffset(yOffset: number): void; declare function getCustomMapYOffset(): number; declare function setCurrentMinimapPosition(position: string): void; declare function getMinimapPosition(): string; /** * Sets an individual or entire floor data array of custom minimap * @param payload */ declare function setCustomMapFloorData(payload: CustomMapFloorData[] | CustomMapFloorData): void; /** * Gets the floor data of custom map. If index is provided will return floor data of that floor. If no parameter is passed will return the entire array * @param index - index of floor data * @returns */ declare function getCustomMapFloorData(index?: number): CustomMapFloorData[] | CustomMapFloorData; /** * Resets the custom map setting to its defaults values */ declare function resetCustomMapSettingValues(): void; declare function setMpSDK(mpSdk: MpSdk): void; declare function getMpSdk(): MpSdk; declare function setCustomMapMode(mode: CUSTOM_MAP_MODE): void; declare function getCustomMapMode(): CUSTOM_MAP_MODE; export { isMinimapNavigation, mapPositions, setMap, showMinimap, hideMinimap, locateAvatar, resetSweepMarkerColors, renderOverlaySweep, showDirection, toggleMinimapVisibility, setSweepMarkerColor, setStandaloneMap, toggleMinimapFloor, getFloorsInSpace, createDropdown, setMinimapPosition, setCurrentMinimapPosition, setCustomMap, setupCustomMinimapPane, setCustomMinimapRotation, getCustomMinimapRotation, generateCustomMinimap, setCustomMapScale, setCustomMapTranslate, setCustomMapXOffset, setCustomMapYOffset, getCustomMapScale, getCustomMapTranslate, getCustomMapXOffset, getCustomMapYOffset, setMinAndMax, setCustomMapFloorData, getCustomMapFloorData, resetCustomMapSettingValues, getMinimapPosition, subscribeToFloorChanges, setMpSDK, getMpSdk, setCustomMapMode, getCustomMapMode };