import { CAMERA_OPERATE, DIRECTION_OPERATE } from "../../api/device"; import { IPuOption } from "../../components/types"; import { IDirections } from "../../templates/icons"; import { CanVisibleCtor, IVisibleEventMap } from "../mixins/visible"; import { IPluginEvent, IPluginEventMap, Plugin } from "../types"; import PtzControlButtonPlugin from "./button"; import ToastPlugin from "../toast"; export interface IDirectionOperateVar { type: IDirections | "center"; operate?: DIRECTION_OPERATE; } interface IPtzPluginEvent extends IPluginEvent { target: PtzPluginBase; } interface IControllerPluginEventMap extends IPluginEventMap, IVisibleEventMap { show: IPtzPluginEvent; hide: IPtzPluginEvent; } declare class PtzPluginBase extends Plugin { puOption?: IPuOption; token?: string; hSpeed: number; vSpeed: number; iPresetPoint: number; private _speedSlider; private _buttons; private _toastInject; constructor(params: { toast: ToastPlugin; }); setPuParam(puOption: IPuOption, token: string): void; bindOperate(button: PtzControlButtonPlugin, operate: DIRECTION_OPERATE | CAMERA_OPERATE | undefined): void; sendGoPresetPoint(): Promise; protected beforeDestroy(): void; init(): HTMLDivElement; } declare const _mixinsPtzPluginBase: CanVisibleCtor & typeof PtzPluginBase; export default class PtzPlugin extends _mixinsPtzPluginBase { } export {};