import { TransportConnection } from '@feathersjs/feathers'; import { Base } from './base'; import { AxiosClient } from './axios'; import { FetchClient } from './fetch'; import { SuperagentClient } from './superagent'; export { AxiosClient, FetchClient, SuperagentClient }; export type Handler = (connection: any, options?: any, Service?: any) => TransportConnection; export interface Transport { superagent: Handler; fetch: Handler; axios: Handler; } export type RestService> = Base; export default function restClient(base?: string): Transport;