import { PanzoomInstance } from "./panzoom"; import { PanzoomButtons } from "../shared/buttons"; export type ControlsItem = { tpl: string; click?: (instanceRef: PanzoomInstance, event: Event) => void; }; export type ControlsOptions = { /** * What buttons to display */ display: Array; /** * Object containing all buttons. Use this to add your own buttons. */ items: Record; /** * Common attributes that will be applied to any SVG icon inside the buttons */ svgAttr: Record; }; export type ControlsInstance = ReturnType; declare module "./panzoom" { interface PanzoomOptions { Controls?: boolean | Partial; } interface PanzoomPlugins { Controls: PanzoomPlugin & ControlsInstance; } } export declare const Controls: () => { init: (panzoom: PanzoomInstance) => void; destroy: () => void; };