import { PanzoomInstance } from "./panzoom"; export type ControlsItem = { tpl: string; click?: (instanceRef: PanzoomInstance, event: Event) => void; }; declare const allControlsItems: Record; 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; /** * Register new item */ add: (id: string, item: ControlsItem) => void; }; export {};