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

type ActiveMenu = "none" | "source" | "suggestion";
declare const useSearchViewModel: (component: LitElement & Pick<SearchViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<SearchViewModel>) => SearchViewModel;
/**
 * The Search component provides a way to perform search operations on locator service(s), map/feature service feature layer(s), SceneLayers with an associated feature layer,
 * BuildingComponentSublayer with an associated feature layer, GeoJSONLayer, CSVLayer, OGCFeatureLayer, and/or table(s). If using a locator with a geocoding service, the
 * findAddressCandidates operation is used, whereas queries are used on feature layers.
 *
 * By default, the Search component uses the GeoScene World Geocoding Service via this URL: `https://www.geosceneonline.cn/geocode/rest/GeoScene/GeocodeServer`.
 * If a global apiKey is present, the Search component uses this URL: `https://www.geosceneonline.cn/geocode/rest/GeoScene/GeocodeServer`. If an apiKey
 * is present on the LocatorSearchSource, then the Search component uses the URL defined by the LocatorSearchSource.url property.
 *
 * The Search component sets the view on the Search result. The level of detail (LOD) at the center of the view depends on the data source, with higher quality data
 * sources returning extents closer to the `feature` obtained from the search. To manually define the scale of the view at the Search result, use the `zoomScale` property
 * of the LocatorSearchSource or LayerSearchSource. Search component results are typically sorted according to their relevance to the search and their relative importance.
 * However, when the scale of the MapView or SceneView is less than or equal to 300,000, the operations support prioritization of candidates based on their distance from a
 * specified point (the center of the view) by passing in the `location parameter`. Features closest to the input location show up higher in the list of results.
 * This behavior can be changed by using the localSearchDisabled property.
 *
 * [Read more...](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-search/)
 */
export declare class GeosceneSearch extends LitElement {
    /**
     * 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;
    /** @default "top-left" */
    position: __geoscene.UIPosition;
    /**
     * This function provides the ability to override either the
     * [MapView goTo()](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-MapView.html#goTo) or
     * [SceneView goTo()](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-SceneView.html#goTo) methods.
     *
     * [Read more...](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#goToOverride)
     *
     * @since 4.33
     */
    goToOverride: nullish | __geoscene.GoToOverride;
    /**
     * 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 "search"
     */
    icon: string;
    /**
     * The current active menu of the Search component.
     *
     * @default "none"
     */
    activeMenu: ActiveMenu;
    /**
     * The [source](#sources) object currently selected. Can be either a
     * [LayerSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LayerSearchSource.html) or a [LocatorSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LocatorSearchSource.html).
     *
     * @default null
     */
    get activeSource(): Nil | (__geoscene.LayerSearchSource | __geoscene.LocatorSearchSource);
    /**
     * The selected source's index. This value is `-1` when all sources are selected.
     *
     * @default 0
     */
    activeSourceIndex: number;
    /**
     * String value used as a hint for input text when searching on multiple sources. See
     * the image below to view the location and style of this text in the context of the component.
     *
     * ![search-allPlaceholder](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/search-allplaceholder.png)
     *
     * @default "Find address or place"
     */
    allPlaceholder: string | nullish;
    /**
     * The combined collection of [defaultSources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#defaultSources)
     * and [sources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#sources).
     * The [defaultSources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#defaultSources)
     * displays first in the Search UI.
     */
    readonly allSources: __geoscene.Collection<__geoscene.LayerSearchSource | __geoscene.LocatorSearchSource>;
    /**
     * Indicates whether to automatically navigate to the selected result.
     *
     * @default false
     */
    autoNavigateDisabled: boolean;
    /**
     * Indicates whether to automatically select and zoom to the first geocoded result. If `false`, the
     * [findAddressCandidates](https://developers.geoscene.cn/rest/geocode/api-reference/geocoding-find-address-candidates.htm)
     * operation will still geocode the input string, but the top result will not be selected. To work with the
     * geocoded results, you can set up a [search-complete](#event-search-complete) event handler and get the results
     * through the event object.
     *
     * @default false
     */
    autoSelectDisabled: boolean;
    /**
     * A read-only property that is a [Collection](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-core-Collection.html)
     * of [LayerSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LayerSearchSource.html)
     * and/or [LocatorSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LocatorSearchSource.html). This property
     * may contain [GeoScene Portal](https://enterprise.geoscene.cn/en/portal/)
     * [locators](http://enterprise.geoscene.cn/en/server/latest/publish-services/windows/geocode-services.htm)
     * and any web map or web scene [configurable search sources](http://doc.geoscene.cn/en/geoscene-online/create-maps/configure-feature-search.htm).
     * Web maps or web scenes may contain
     * [map](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-MapImageLayer.html)/[feature](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-FeatureLayer.html) service feature
     * layer(s), and/or [table(s)](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-webdoc-applicationProperties-SearchTable.html) as sources.
     *
     * This property is used to populate the Search UI if the [sources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#sources) property is not set.
     */
    readonly defaultSources: __geoscene.Collection<__geoscene.LayerSearchSource | __geoscene.LocatorSearchSource>;
    /**
     * When true, the component is visually withdrawn and cannot be interacted with.
     *
     * @default false
     */
    disabled: boolean;
    /**
     * Indicates whether or not to include [defaultSources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
     * This can be a boolean value or a function that returns an array of Search [sources](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#sources).
     *
     * @default false
     */
    includeDefaultSourcesDisabled: boolean | Function;
    /**
     * Enables location services within the component.
     *
     * ![locationEnabled](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/search-locationEnabled.png)
     *
     * ::: geoscene-md class="warning"
     * The use of this property is only supported on secure origins.
     * To use it, switch your application to a secure origin, such as HTTPS.
     * Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports
     * [Window.isSecureContext](https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext#browser_compatibility)
     * (currently Chrome and Firefox).
     * :::
     *
     * @default false
     */
    locationDisabled: boolean;
    /**
     * The maximum number of results returned by the component if not specified by the source.
     *
     * @default 6
     */
    maxResults: number;
    /**
     * The maximum number of suggestions returned by the component if not specified by the source.
     *
     * If working with the default
     * [GeoScene Online Geocoding service](https://developers.geoscene.cn/rest/geocode/api-reference/overview-world-geocoding-service.htm),
     * the default remains at `5`.
     *
     * @default 6
     */
    maxSuggestions: number;
    /**
     * The minimum number of characters needed for the search if not specified by the source.
     *
     * @default 3
     */
    minSuggestCharacters: number;
    /**
     * Indicates whether to display the [Popup](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Popup.html) on feature click. The graphic can
     * be clicked to display a [Popup](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Popup.html).
     *
     * @default false
     */
    popupDisabled: boolean;
    /**
     * A customized [PopupTemplate](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-PopupTemplate.html) for the selected feature.
     * Note that any [templates](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-PopupTemplate.html)
     * defined on [allSources](#allSources) take precedence over those defined directly on the template.
     *
     * @autocast
     * @default null
     */
    popupTemplate: nullish | __geoscene.PopupTemplate;
    /**
     * It is possible to search a specified portal instance's [locator services](http://enterprise.geoscene.cn/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm)
     * Use this property to set this [GeoScene Portal](https://enterprise.geoscene.cn/en/portal/) instance to search.
     */
    portal: nullish | __geoscene.Portal;
    /**
     * The graphic used to highlight the resulting feature or location.
     *
     * :::geoscene-md class="panel trailer-1"
     * A graphic will be placed in the View's
     * [graphics](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-View.html#graphics)
     * for [layer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-views-layers-LayerView.html)
     * that do not support the `highlight` method.
     * :::
     *
     * @default null
     */
    readonly resultGraphic: nullish | __geoscene.Graphic;
    /**
     * Indicates if the [resultGraphic](#resultGraphic) will display at the
     * location of the selected feature.
     *
     * @default false
     */
    resultGraphicDisabled: boolean;
    /**
     * An array of objects, each containing a [SearchResult](#SearchResult) from the search.
     *
     * @default null
     */
    readonly results: nullish | __geoscene.SearchResults[];
    /**
     * Indicates whether to display the option to search all sources. When `true`, the "All" option
     * is displayed by default:
     *
     * ![search-searchAllEnabled-true](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/search-enablesearchingall-true.png)
     *
     * When `false`, no option to search all sources at once is available:
     *
     * ![search-searchAllEnabled-false](https://doc.geoscene.cn/javascript/4.33/assets/img/apiref/widgets/search-enablesearchingall-false.png)
     *
     * @default false
     */
    searchAllDisabled: boolean;
    /** The value of the search box input text string. */
    searchTerm: string;
    /**
     * The result selected from a search.
     *
     * @see [geosceneSelectResult](https://doc.geoscene.cn/javascript/4.33/references/map-components/geoscene-search/#geosceneSelectResult)
     * @see [select()](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-SearchViewModel.html#select)
     * @default null
     */
    readonly selectedResult: nullish | __geoscene.SearchResult;
    /**
     * The Search component may be used to search features in a
     * [map](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-MapImageLayer.html)/[feature](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-FeatureLayer.html) service feature
     * layer(s), [SceneLayers](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-SceneLayer.html) with an associated feature layer,
     * [BuildingComponentSublayer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer,
     * [GeoJSONLayer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-GeoJSONLayer.html), [CSVLayer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-CSVLayer.html) or
     * [OGCFeatureLayer](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-layers-OGCFeatureLayer.html), or [table](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-webdoc-applicationProperties-SearchTable.html),
     * or geocode locations with a [locator](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-rest-locator.html). The `sources` property defines the sources from which
     * to search for the [view](#view) specified by the Search component instance. There are two types of sources:
     *
     * * [LayerSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LayerSearchSource.html)
     * * [LocatorSearchSource](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-widgets-Search-LocatorSearchSource.html)
     *
     * Any combination of these sources may be used
     * together in the same instance of the Search component.
     *
     * ::: geoscene-md class="warning"
     * Feature layers created from client-side graphics are not supported.
     * :::
     *
     * @autocast {"typedCollection": true}
     */
    sources: __geoscene.Collection<__geoscene.LayerSearchSource | __geoscene.LocatorSearchSource>;
    /**
     * An array of results from the [suggest method](#suggest).
     *
     * This is available if working with a 10.3 or greater geocoding service that has [suggest capability
     * loaded](https://developers.geoscene.cn/rest/geocode/api-reference/geocoding-suggest.htm) or a
     * 10.3 or greater feature layer that supports pagination, i.e. `supportsPagination = true`.
     *
     * @default null
     */
    readonly suggestions: nullish | __geoscene.SuggestResults[];
    /**
     * Enable suggestions for the component.
     *
     * This is only available if working with a 10.3 or greater geocoding service that has [suggest capability
     * loaded](https://developers.geoscene.cn/rest/geocode/api-reference/geocoding-suggest.htm) or a 10.3 or greater feature layer that supports pagination, i.e. `supportsPagination = true`.
     *
     * @default false
     */
    suggestionsDisabled: boolean;
    /**
     * 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-search/#destroy) method when you are done to
     * prevent memory leaks.
     *
     * @default false
     */
    autoDestroyDisabled: boolean;
    /**
     * Replace localized message strings with your own strings.
     *
     * _**Note**: Individual message keys may change between releases._
     */
    messageOverrides?: typeof this.messages._overrides;
    /** The component's default label. */
    label?: string;
    /**
     * The current state of the component.
     *
     * @default "ready"
     */
    readonly state: "ready" | "loading" | "disabled" | "searching";
    /**
     * Clears the current searchTerm, search results, suggest results, graphic, and graphics layer.
     * It also hides any open menus.
     */
    clear(): void;
    /** Permanently destroy the component. */
    destroy(): Promise<void>;
    /**
     * Depending on the sources specified, search() queries the feature layer(s) and/or performs
     * address matching using any specified [locator(s)](https://doc.geoscene.cn/javascript/4.33/api-reference/geoscene-rest-locator.html) and
     * returns any applicable results.
     */
    search(searchItem?: __geoscene.Graphic | __geoscene.Point | __geoscene.SuggestResult | Nil | number[] | string): Promise<__geoscene.SearchResponse | Nil>;
    /**
     * Performs a suggest() request on the active Locator. It also uses the current value of
     * the component or one that is passed in.
     *
     * Suggestions are available if working with a 10.3 or greater geocoding service that has
     * [suggest capability
     * loaded](https://developers.geoscene.cn/rest/geocode/api-reference/geocoding-suggest.htm) or a 10.3 or greater feature layer that supports pagination, i.e.
     * `supportsPagination = true`.
     */
    suggest(query?: string): Promise<__geoscene.SuggestResponse | Nil>;
    /** Brings focus to the component's text input. */
    setFocus(): 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";
    }>;
    /** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
    readonly geosceneReady: TargetedEvent<this, void>;
    /** Fires when a result is cleared from the input box or a new result is selected. */
    readonly geosceneSearchClear: TargetedEvent<this, __geoscene.SearchViewModelSearchClearEvent>;
    /** Fires when the [search()](#search) method is called and returns its results. */
    readonly geosceneSearchComplete: TargetedEvent<this, __geoscene.SearchViewModelSearchCompleteEvent>;
    /** Fires when the [search()](#search) method starts. */
    readonly geosceneSearchStart: TargetedEvent<this, __geoscene.SearchViewModelSearchStartEvent>;
    /** Fires when a search result is selected. */
    readonly geosceneSelectResult: TargetedEvent<this, __geoscene.SearchViewModelSelectResultEvent>;
    /** Fires when the [suggest](#suggest) method is called and returns its results. */
    readonly geosceneSuggestComplete: TargetedEvent<this, __geoscene.SearchViewModelSuggestCompleteEvent>;
    /** Fires when the [suggest()](#suggest) method starts. */
    readonly geosceneSuggestStart: TargetedEvent<this, __geoscene.SearchViewModelSuggestStartEvent>;
    private messages: Partial<{
        componentLabel: string;
        searchButtonTitle: string;
        placeholder: string;
        searchIn: string;
        all: string;
        allPlaceholder: string;
        locateError: string;
        untitledResult: string;
        untitledSource: string;
        noResults: string;
        noResultsFound: string;
        noResultsFoundForValue: string;
        showMoreResults: string;
        hideMoreResults: string;
        searchResult: string;
        moreResultsHeader: string;
        useCurrentLocation: string;
    }> & import('@arcgis/lumina/controllers').T9nMeta<{
        componentLabel: string;
        searchButtonTitle: string;
        placeholder: string;
        searchIn: string;
        all: string;
        allPlaceholder: string;
        locateError: string;
        untitledResult: string;
        untitledSource: string;
        noResults: string;
        noResultsFound: string;
        noResultsFoundForValue: string;
        showMoreResults: string;
        hideMoreResults: string;
        searchResult: string;
        moreResultsHeader: string;
        useCurrentLocation: string;
    }>;
}
export {};