import BaseSocket, { SocketOptions } from "../base"; import { DriverStateDataType, DriverType } from "./types"; import { ETAType, LocationAndEtaDetailType } from "../base/types"; export declare type ServiceTypeType = 'OWD' | 'TWD'; export declare type FinalLocationType = { place: string; latitude: number; longitude: number; }; declare class DriverSocket extends BaseSocket { constructor(opts: SocketOptions); onLocationUpdate: (locationWithEta: LocationAndEtaDetailType) => void; sendLocationWithEta: (locationWithEta: LocationAndEtaDetailType) => void; goOnline: () => void; goOffline: () => void; rejectCall: () => void; acceptCall: (driver: DriverType, eta?: ETAType | undefined) => void; abortRide: (eta?: ETAType | undefined) => void; startRide: () => void; endRide: (serviceType: ServiceTypeType, waitingTimeInMinutes: Number, finalLocation: FinalLocationType) => void; } export default DriverSocket;