/**
 * Type describing a function for visiting server endpoints.
 * @author Benedikt Arnarsson
 */
type VisitServerEndpoint = (opts: {
  // The path of the server endpoint
  path: string,
  // The method of the endpoint
  method?: ('GET' | 'POST' | 'DELETE' | 'PUT'),
  // query/body parameters to include
  params?: { [key in string]: any },
}) => Promise<any>;

export default VisitServerEndpoint;
