/// <reference types="@geoscene/core/interfaces.d.ts" />
import { GenericController } from '@arcgis/lumina/controllers';
import { Nil } from '@arcgis/components-utils';
import { default as MapView } from '@geoscene/core/views/MapView';
import { default as SceneView } from '@geoscene/core/views/SceneView';
import { default as LinkChartView } from '@geoscene/core/views/LinkChartView';
import { GeosceneReferenceElement } from '../utils/component-utils';
import { PropertyValues } from 'lit';
import { LitElement, EventEmitter } from '@arcgis/lumina';
type View = LinkChartView | MapView | SceneView;
type ViewControllerRequires<ViewType extends View> = LitElement & ViewControllerUses<ViewType>;
export interface ViewControllerUses<ViewType extends View> {
    view?: Nil | ViewType;
    position: __geoscene.UIPosition;
    referenceElement?: GeosceneReferenceElement | string;
    geosceneReady: EventEmitter;
    el: HTMLElement & {
        childElem?: HTMLElement & {
            ownedBy?: HTMLElement;
        };
        view?: Nil | ViewType;
    };
}
/**
 * Creates a controller which adds a `view` property to the component and connects the component to that view, both when
 * the view is provided directly or linked via the `referenceElement` property. The controller also handles emitting the
 * `arcgisViewReady` event and removing the component from the view's UI when the component is disconnected.
 */
export declare const useView: <ViewType extends View = View>(component: ViewControllerRequires<ViewType>) => ViewType | undefined;
export declare class ViewController<ViewType extends View = View> extends GenericController<ViewType | undefined, ViewControllerRequires<ViewType>> {
    #private;
    constructor(component: ViewControllerRequires<ViewType>);
    hostConnected(): void;
    hostLoad(): void;
    hostLoaded(): void;
    hostDisconnected(): void;
    hostUpdate(changes: PropertyValues<ViewControllerUses<View>>): void;
}
export {};