UNPKG

migros-api-wrapper

Version:

Making the api of migros more accessible to the public.

13 lines (12 loc) 900 B
import { ICookies } from "../api/interfaces/cookies"; import { AxiosResponse } from "axios"; export declare function getRequest(url: string, options: Record<string, string>, headers?: Record<string, string>, cookies?: ICookies): Promise<Response>; export declare function getRequestBypass(url: string, options: Record<string, string>, headers?: Record<string, string>, cookies?: ICookies): Promise<{ headers: AxiosResponse["headers"]; data: AxiosResponse["data"]; }>; export declare function getRequestBypassStrong(url: string, options: Record<string, string>, headers?: Record<string, string>, cookies?: ICookies): Promise<{ headers: AxiosResponse["headers"]; data: AxiosResponse["data"]; }>; export declare function postRequest(url: string, body: Record<string, any> | null, options: Record<string, string>, headers?: Record<string, string>, cookies?: ICookies): Promise<Response>;