export type ApiRequestOptions<T = unknown> = {
  readonly method:
    | "GET"
    | "PUT"
    | "POST"
    | "DELETE"
    | "OPTIONS"
    | "HEAD"
    | "PATCH"
  readonly url: string
  readonly path?: Record<string, unknown>
  readonly cookies?: Record<string, unknown>
  readonly headers?: Record<string, unknown>
  readonly query?: Record<string, unknown>
  readonly formData?: Record<string, unknown>
  readonly body?: any
  readonly mediaType?: string
  readonly responseHeader?: string
  readonly responseTransformer?: (data: unknown) => Promise<T>
  readonly errors?: Record<number | string, string>
}
