import { AxiosError } from "axios"; /** * @brief This defines our external dependency. Any network requests meet these * signature. */ export interface AjaxResponse { data: T; } export interface Ajax { get: (url: string) => Promise>; post: (url: string, data: any) => Promise>; delete: (url: string) => Promise>; } export declare const ajax: Ajax; export declare type AjaxError = AxiosError; export declare const login: (username: string, password: string) => void; export default ajax;