/// <reference types="@geoscene/core/interfaces.d.ts" />
/// <reference types="../../index.d.ts" />
import { Use } from '@arcgis/lumina/controllers';
import { default as Measurement } from '@geoscene/core/widgets/Measurement.js';
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
import { GeosceneReferenceElement } from '../../utils/component-utils';

declare const useMeasurementWidget: (component: LitElement & Pick<Measurement, "icon" | "label" | "viewModel" | "activeTool" | "areaUnit" | "linearUnit"> & {
    state?: unknown;
    viewModel?: __geoscene.MeasurementViewModel | undefined;
    closed?: boolean;
    icon: import('@arcgis/components-utils').Nil | string;
    label: import('@arcgis/components-utils').Nil | string;
    referenceElement?: GeosceneReferenceElement | string;
    position: __geoscene.UIPosition;
    geosceneReady: import('@arcgis/lumina').EventEmitter;
    geoscenePropertyChange: import('@arcgis/lumina').EventEmitter<{
        name: string;
    }> | undefined;
    el: HTMLElement & {
        childElem?: HTMLElement & {
            ownedBy?: HTMLElement;
        };
        view?: __geoscene.LinkChartView | __geoscene.MapView | __geoscene.SceneView;
    };
    autoDestroyDisabled: boolean;
    destroy: () => Promise<void>;
}) => Measurement;
/**
 * [Read more...](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-measurement/)
 *
 * @internal
 */
export declare class GeosceneMeasurement extends LitElement {
    /**
     * Specifies the current measurement tool to display.
     *
     * @default null
     */
    activeTool: nullish | "area" | "distance" | "direct-line";
    /**
     * The measurement widget that is currently being used.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Measurement.html#activeWidget)
     *
     * @default null
     */
    readonly activeWidget: nullish | __geoscene.DistanceMeasurement2D | __geoscene.AreaMeasurement2D | __geoscene.AreaMeasurement3D | __geoscene.DirectLineMeasurement3D;
    /**
     * Unit system (imperial, metric) or specific unit used for displaying the area values.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Measurement.html#areaUnit)
     */
    areaUnit: __geoscene.SystemOrAreaUnit;
    /**
     * If true, the component will not be destroyed automatically when it is
     * disconnected from the document. This is useful when you want to move the
     * component to a different place on the page, or temporarily hide it. If this
     * is set, make sure to call the [destroy](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-measurement/#destroy) method when you are done to
     * prevent memory leaks.
     *
     * @default false
     */
    autoDestroyDisabled: boolean;
    /**
     * Icon which represents the component.
     * Typically used when the component is controlled by another component (e.g. by the Expand component).
     *
     * @see [Calcite Icons](https://doc.geoscene.cn/calcite-design-system/icons/)
     * @default "measure"
     */
    icon: string;
    /**
     * The widget's default label.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Measurement.html#label)
     */
    label: string;
    /**
     * Unit system (imperial, metric) or specific unit used for displaying the distance values.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Measurement.html#linearUnit)
     */
    linearUnit: __geoscene.SystemOrLengthUnit;
    /** @default "bottom-left" */
    position: __geoscene.UIPosition;
    /**
     * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
     *
     * @see [Associate components with a Map or Scene component](https://doc.geoscene.cn/javascript/4.33/programming-patterns/#associate-components-with-a-map-or-scene-component)
     */
    referenceElement?: GeosceneReferenceElement | string;
    /**
     * The current state of the component.
     *
     * @default "disabled"
     */
    readonly state: "ready" | "disabled" | "measuring" | "measured";
    clear(): Promise<void>;
    /** Permanently destroy the component. */
    destroy(): Promise<void>;
    startMeasurement(): Promise<void>;
    /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
    readonly geoscenePropertyChange: TargetedEvent<this, {
        name: "state" | "activeTool";
    }>;
    /** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
    readonly geosceneReady: TargetedEvent<this, void>;
}
export {};