import { DSQLClientFetchHeader } from "../../package-shared/types"; type FetchApiOptions = { method: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "post" | "get" | "delete" | "put" | "patch"; body?: T | string; headers?: DSQLClientFetchHeader; }; export type FetchApiReturn = { success: boolean; payload: any; msg?: string; [key: string]: any; }; /** * # Fetch API */ export default function fetchApi(url: string, options?: FetchApiOptions, csrf?: boolean, /** * Key to use to grab local Storage csrf value. */ localStorageCSRFKey?: string): Promise; export {};