import type { AxiosResponseHeaders, RawAxiosResponseHeaders, AxiosRequestConfig } from "axios"; import type { Params } from "./misc"; export interface ServerData { /** The response returned by the server. */ response: T; /** The headers included in the server's response. */ headers: AxiosResponseHeaders | RawAxiosResponseHeaders; /** * The response's HTTP code. * * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Status Documentation} */ status: number; /** * The response's HTTP code's text version. * * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText Documentation} */ statusText: string; /** * The original request. This field is marked as optional since it's optional * in Axios' returned data as well. * * {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest Documentation} */ request?: XMLHttpRequest; } export interface AnylessAxiosRequestConfig extends AxiosRequestConfig { params?: P; } export type DatalessAxiosRequestConfig

= Omit, "data">; export type Methodless = Omit; export type AbortControllerless = Omit;