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

declare const useSketchWidget: (component: LitElement & Pick<Sketch, "icon" | "label" | "viewModel" | "scale" | "layout" | "layer" | "availableCreateTools" | "creationMode" | "defaultCreateOptions" | "defaultUpdateOptions" | "labelOptions" | "toolbarKind" | "snappingOptions" | "tooltipOptions"> & {
    state?: "ready" | "disabled" | "active" | undefined;
    viewModel?: __geoscene.SketchViewModel | 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>;
}) => Sketch;
/**
 * The Sketch component provides a simple UI for creating and updating graphics on a [MapView](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-MapView.html) or a [SceneView](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-SceneView.html).
 *
 * [Read more...](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-sketch/)
 */
export declare class GeosceneSketch extends LitElement {
    /**
     * When creating new graphics (for example after [create()](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#create) has been called),
     * this property reflects the create tool being used.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#activeTool)
     */
    readonly activeTool: nullish | "rectangle" | "polygon" | "point" | "move" | "circle" | "reshape" | "multipoint" | "polyline" | "mesh" | "transform" | "freehandPolyline" | "freehandPolygon" | "rectangle-selection" | "lasso-selection" | "custom-selection";
    /**
     * 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-sketch/#destroy) method when you are done to
     * prevent memory leaks.
     *
     * @default false
     */
    autoDestroyDisabled: boolean;
    /**
     * Property controlling the visibility and order of create tool buttons.
     *
     * @default ["point", "polyline", "polygon", "rectangle", "circle"]
     */
    availableCreateTools: nullish | ("rectangle" | "polygon" | "point" | "circle" | "multipoint" | "polyline" | "mesh" | "freehandPolyline" | "freehandPolygon")[];
    /**
     * The graphic that is being created.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#createGraphic)
     */
    readonly createGraphic: nullish | __geoscene.Graphic;
    /**
     * Defines the default behavior once the [create](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#create) operation is completed.
     *
     * @default "continuous"
     */
    creationMode: "update" | "single" | "continuous";
    /**
     * Default create options set for the Sketch widget.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#defaultCreateOptions)
     */
    defaultCreateOptions: __geoscene.SketchDefaultCreateOptions;
    /**
     * By default, sketch will auto-create a new graphics layer if none was
     * provided. Set this prop to true to disable this behavior.
     *
     * @default false
     */
    defaultGraphicsLayerDisabled: boolean;
    /**
     * Default update options set for the Sketch widget.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#defaultUpdateOptions)
     */
    defaultUpdateOptions: __geoscene.SketchDefaultUpdateOptions;
    /** @default false */
    hideCreateToolsCircle: boolean;
    /** @default false */
    hideCreateToolsPoint: boolean;
    /** @default false */
    hideCreateToolsPolygon: boolean;
    /** @default false */
    hideCreateToolsPolyline: boolean;
    /** @default false */
    hideCreateToolsRectangle: boolean;
    /** @default false */
    hideDuplicateButton: boolean;
    /** @default false */
    hideDeleteButton: boolean;
    /** @default false */
    hideSelectionCountLabel: boolean;
    /** @default false */
    hideLabelsToggle: boolean;
    /** @default false */
    hideSelectionToolsLassoSelection: boolean;
    /** @default false */
    hideSelectionToolsRectangleSelection: boolean;
    /** @default false */
    hideSettingsMenu: boolean;
    /** @default false */
    hideSnappingControls: boolean;
    /** @default false */
    hideSnappingControlsElementsEnabledToggle: boolean;
    /** @default false */
    hideSnappingControlsElementsFeatureEnabledToggle: boolean;
    /** @default false */
    hideSnappingControlsElementsLayerList: boolean;
    /** @default false */
    hideSnappingControlsElementsSelfEnabledToggle: boolean;
    /** @default false */
    hideTooltipsToggle: boolean;
    /** @default false */
    hideUndoRedoMenu: 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 "pencil"
     */
    icon: string;
    /**
     * The Sketch widget's default label.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#label)
     */
    label: string;
    /**
     * Options to configure the sketch labels shown next to each segment of the geometry being created or updated.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#labelOptions)
     */
    labelOptions: __geoscene.SketchLabelOptions;
    /**
     * The [GraphicsLayer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-GraphicsLayer.html) associated with the Sketch widget.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#layer)
     */
    layer: GraphicsLayer;
    /**
     * Determines the layout/orientation of the Sketch widget.
     *
     * @default "horizontal"
     */
    layout: "vertical" | "horizontal";
    /**
     * A [SimpleMarkerSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-SimpleMarkerSymbol.html), [PointSymbol3D](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-PointSymbol3D.html), [TextSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-TextSymbol.html), [CIMSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-CIMSymbol.html), or [WebStyleSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-WebStyleSymbol.html) used for representing the point geometry that is being drawn.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch-SketchViewModel.html#pointSymbol)
     */
    pointSymbol: __geoscene.SimpleMarkerSymbol | __geoscene.PictureMarkerSymbol | __geoscene.PointSymbol3D | __geoscene.TextSymbol | __geoscene.CIMSymbol | __geoscene.WebStyleSymbol;
    /**
     * A [SimpleFillSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-SimpleFillSymbol.html), [PolygonSymbol3D](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-PolygonSymbol3D.html), or [CIMSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-CIMSymbol.html) used for representing the polygon geometry that is being drawn.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch-SketchViewModel.html#polygonSymbol)
     */
    polygonSymbol: __geoscene.CIMSymbol | __geoscene.SimpleFillSymbol | __geoscene.PolygonSymbol3D;
    /**
     * A [SimpleLineSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-SimpleLineSymbol.html), [LineSymbol3D](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-LineSymbol3D.html), or [CIMSymbol](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-symbols-CIMSymbol.html) used for representing the polyline geometry that is being drawn.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch-SketchViewModel.html#polylineSymbol)
     */
    polylineSymbol: __geoscene.SimpleLineSymbol | __geoscene.CIMSymbol | __geoscene.LineSymbol3D;
    /** @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;
    /**
     * Determines the size of widget elements.
     *
     * @default "m"
     */
    scale: "s" | "m" | "l";
    /**
     * Controls the appearance of the sketch widget, allowing
     * the toolbar to adapt its appearance appropriately based on context.
     *
     * @default "floating"
     */
    toolbarKind: "floating" | "docked";
    /** @default false */
    showSnappingControlsElementsHeader: boolean;
    /**
     * The [SnappingOptions](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-interactive-snapping-SnappingOptions.html) for sketching.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#snappingOptions)
     */
    snappingOptions: __geoscene.SnappingOptions;
    /** The current state of the component. */
    readonly state: "ready" | "disabled" | "active";
    /**
     * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#tooltipOptions)
     */
    tooltipOptions: __geoscene.SketchTooltipOptions;
    /**
     * An array of [graphics](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-Graphic.html) that are being updated by the Sketch widget.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Sketch.html#updateGraphics)
     */
    readonly updateGraphics: __geoscene.Collection<__geoscene.Graphic>;
    cancel(): Promise<void>;
    complete(): Promise<void>;
    create(tool: "circle" | "point" | "polygon" | "polyline" | "rectangle", createOptions?: __geoscene.SketchViewModelCreateCreateOptions): Promise<void>;
    delete(): Promise<void>;
    /** Permanently destroy the component. */
    destroy(): Promise<void>;
    duplicate(): Promise<void>;
    redo(): Promise<void>;
    triggerUpdate(graphic: __geoscene.Graphic | __geoscene.Graphic[], updateOptions?: __geoscene.SketchViewModelUpdateUpdateOptions): Promise<void>;
    undo(): Promise<void>;
    readonly geosceneCreate: TargetedEvent<this, __geoscene.SketchCreateEvent>;
    readonly geosceneDelete: TargetedEvent<this, __geoscene.SketchDeleteEvent>;
    /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
    readonly geoscenePropertyChange: TargetedEvent<this, {
        name: "state";
    }>;
    /** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
    readonly geosceneReady: TargetedEvent<this, void>;
    readonly geosceneRedo: TargetedEvent<this, __geoscene.SketchRedoEvent>;
    readonly geosceneUndo: TargetedEvent<this, __geoscene.SketchUndoEvent>;
    readonly geosceneUpdate: TargetedEvent<this, __geoscene.SketchUpdateEvent>;
}
export {};