import { Feature, MapBrowserEvent, Map as MapOl } from 'ol';
import { ShipTrack } from '../interface/shipTrack';
export interface TrackManager {
    render: (id: string, list: ShipTrack[], color: string, options?: {
        showTime?: boolean;
        lineWidth?: number;
        showPopup?: boolean;
    }, type?: string, threshold?: number) => Promise<void>;
    remove: () => void;
    play: (id: number | string, speed: number) => void;
    setCenter: (id?: number | string) => void;
    close: (id?: string) => void;
    getLength: (id: string, unit?: number) => {
        id: string;
        length: string;
    };
    handleTrackMapEvent: (trunkFeature: Feature | null, type: string, event?: MapBrowserEvent<PointerEvent | KeyboardEvent | WheelEvent>) => void;
    reRenderTrackLine: () => void;
    getTrackStatus: () => boolean | null;
}
export declare const useTrackManager: (mapInstance: MapOl) => TrackManager;
