import { DrawType } from '@web-map-service/map2d';
import { App, Plugin } from '../types';
declare function makeTool(app: App): {
    enabled: boolean;
    enable(): void;
    use(type: string, drawType?: DrawType): void;
    close(): void;
};
export declare function createPlugin(): Plugin<Record<string, unknown>>;
declare module './tool' {
    interface Tools {
        draw: ReturnType<typeof makeTool>;
    }
}
declare module '../types' {
    interface AppEmitterEvent {
        draw: any;
    }
}
export {};
