import BaseSocket, { SocketOptions } from "../base"; import { CustomerStateDataType } from "./types"; import { ETAType, LocationAndEtaDetailType, LocationObjectType } from "../base/types"; export declare type InitiateRideParamsType = { cardId: string; serviceType: 'TWD' | 'OWD'; origin: { place: string; latitude: string; longitude: string; }; destination: { place: string; latitude: string; longitude: string; }; fareObj: { serviceType: 'TWD' | 'OWD'; fare: number; farePerHr: number; time: number; driverShare: number; insurance: number; platformShare: number; forwardTime: number; backwardTime: number; }; }; declare class CustomerSocket extends BaseSocket { constructor(opts: SocketOptions); onLocationUpdate: ({ location }: LocationAndEtaDetailType) => void; sendLocation: (location: LocationObjectType) => void; initiateRide: (initiateRideParams: InitiateRideParamsType) => void; cancelRide: (eta?: ETAType | undefined) => void; } export default CustomerSocket;