import { DriverStateDataType, DriverType } from "./types"; import DriverSocket, { FinalLocationType, ServiceTypeType } from "./socket"; import { SocketStateType } from "../base"; import { ETAType } from "../base/types"; export declare const useDriverSocket: () => DriverSocket | undefined; export declare type DriverSocketStateSelectorType = (state: SocketStateType) => any; export declare const useDriverSocketState: (selector?: DriverSocketStateSelectorType) => any; export declare type DriverSocketActionsType = { sendLocationWithEta: () => void; goOnline: () => void; goOffline: () => void; rejectCall: () => void; acceptCall: (driver: DriverType, eta?: ETAType) => void; abortRide: (eta?: ETAType) => void; startRide: () => void; endRide: (serviceType: ServiceTypeType, waitingTimeInMinutes: Number, finalLocation: FinalLocationType) => void; }; export declare const useDriverSocketActions: () => DriverSocketActionsType;