/// <reference types="@geoscene/core/interfaces.d.ts" />
/// <reference types="../../index.d.ts" />
import { Use } from '@arcgis/lumina/controllers';
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
import { GeosceneReferenceElement } from '../../utils/component-utils';
import { default as SliceViewModel, SliceableLayer } from './SliceViewModel';
import { HeadingLevel } from '../../support/heading';

declare const useSliceViewModel: (component: LitElement & Pick<SliceViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<SliceViewModel>) => SliceViewModel;
/**
 * The Slice component is a 3D analysis tool that can be used to reveal occluded content in a
 * [Scene](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-scene/). It applies
 * [slice analysis](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SliceAnalysis.html)
 * to any layer type, making it possible to see inside buildings or to explore geological surfaces.
 *
 * [![slice](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/slice.gif)](https://doc.geoscene.cn/javascript/4.33/sample-code/building-scene-layer-slice/index.html)
 *
 * The slicing [shape](#shape)
 * is always a [plane](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SlicePlane.html).
 * By default, the plane is either horizontal or vertical. To allow a tilt angle for the plane, set
 * [tiltEnabled](#tiltEnabled)
 * to `true`. The slice hides any content in front of the surface. The handles on the sides of the plane can be used to adjust
 * the size, heading, tilt, and position of the slice plane.
 * The [SlicePlane](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SlicePlane.html)
 * can be set or retrieved using the [shape](#shape) property.
 *
 * Once the slice plane is applied, layers can be excluded from the slicing. For example, by excluding the sublayers which include
 * columns and floor slabs, the inner structure of a building can investigated.
 *
 * [![slice-exclude](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/slice-exclude.png)](https://doc.geoscene.cn/javascript/4.33/sample-code/building-scene-layer-slice/index.html)
 *
 * Holding the `Shift` key while creating a new slice applies it vertically.
 *
 * **Known limitation**
 *
 * Slice is only supported in a 3D [Scene](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-scene/) component.
 *
 * **See also**
 *
 * - [SliceAnalysis](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SliceAnalysis.html)
 * - [Sample - BuildingSceneLayer with Slice component](https://doc.geoscene.cn/javascript/4.33/sample-code/building-scene-layer-slice/)
 * - [Sample - Analysis objects](https://doc.geoscene.cn/javascript/4.33/sample-code/analysis-objects/)
 *
 * [Read more...](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-slice/)
 */
export declare class GeosceneSlice extends LitElement {
    /**
     * The [SliceAnalysis](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SliceAnalysis.html)
     * created or modified by the component.
     *
     * When connecting the Slice component to the [Scene](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-scene/)
     * component, it automatically creates an empty analysis and adds it to the Scene's
     * [analyses](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-scene/#analyses) collection.
     * Whenever the component is destroyed, the analysis is automatically removed from the collection.
     *
     * Alternatively, a programmatically created analysis can be provided to the component.
     * Then, the application itself needs to add it to and later remove it from the Scene's analyses collection.
     *
     * ```js
     * // Create the analysis.
     * const sliceAnalysis = new SliceAnalysis({
     *    shape: new SlicePlane({
     *      position: new Point({
     *        spatialReference: { latestWkid: 3857, wkid: 102100 },
     *        x: -13624925.727820931,
     *        y: 4550341.695170021,
     *        z: 56
     *      }),
     *      tilt: 270,
     *      width: 310,
     *      height: 190,
     *      heading: 45
     *    })
     * });
     * // Get the Scene and Slice component and wait until they are ready.
     * const viewElement = document.querySelector("geoscene-scene");
     * await viewElement.viewOnReady();
     * const slice = document.querySelector("geoscene-slice");
     * await slice.componentOnReady();
     * // Add the analysis to the Scene component.
     * viewElement.analyses.add(sliceAnalysis);
     * // Connect the analysis to the slice component:
     * slice.analysis = sliceAnalysis;
     * ```
     */
    analysis: __geoscene.SliceAnalysis;
    /**
     * 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-slice/#destroy) method when you are done to
     * prevent memory leaks.
     *
     * @default false
     */
    autoDestroyDisabled: boolean;
    /**
     * Indicates whether the [Ground](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-Ground.html) and layers that
     * are draped on the ground surface are excluded from the slice.
     *
     * @default false
     */
    excludeGroundSurface: boolean;
    /**
     * Add layers to this collection to exclude them from the slice. Layers that
     * are draped on the ground surface are not affected by this property
     */
    excludedLayers: __geoscene.Collection<SliceableLayer>;
    /** @default 3 */
    headingLevel: HeadingLevel;
    /**
     * 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 "slice"
     */
    icon?: HTMLCalciteIconElement["icon"];
    /** The component's default label. */
    label?: string;
    /**
     * Replace localized message strings with your own strings.
     *
     * _**Note**: Individual message keys may change between releases._
     */
    messageOverrides?: typeof this._messages._overrides;
    /** @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 shape used to slice elements in a 3D scene. Currently the only supported shape is a
     * [plane](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-analysis-SlicePlane.html).
     *
     * @example
     * ```js
     * // Clone the shape to modify its properties
     * const shape = slice.shape.clone();
     * // Set new values for heading and tilt
     * shape.heading = 180;
     * shape.tilt = 45;
     * // Apply the new shape to the slice component's shape
     * slice.shape = shape;
     * ```
     */
    shape: nullish | __geoscene.SlicePlane;
    /**
     * The component's state. The values mean the following:
     *
     * * `disabled` -  not ready yet
     * * `ready` - ready for slicing
     * * `slicing` - currently slicing
     * * `sliced` - finished slicing
     */
    readonly state: "ready" | "disabled" | "excludingLayer" | "sliced" | "slicing";
    /**
     * Enable tilting the slice shape. If set to true, the slice shape will orient itself as best as
     * possible to the surface under the cursor when first placing the shape. If set to false, the slice shape is
     * restricted to be either horizontal or vertical.
     *
     * @default false
     */
    tiltEnabled: boolean;
    /**
     * Clear the [shape](#shape) of the slice, effectively removing it from the view. Other properties like [excludedLayers](#excludedLayers)
     * and [excludeGroundSurface](#excludeGroundSurface) are not modified.
     */
    clear(): Promise<void>;
    /** Permanently destroy the component. */
    destroy(): Promise<void>;
    /** Start the interactive creation of a new slice, clearing the previous [shape](#shape). */
    start(): 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" | "analysis";
    }>;
    /** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
    readonly geosceneReady: TargetedEvent<this, void>;
    private _messages;
}
export {};