UNPKG

@permitio/permit-js

Version:

Permitio is a frontend package that makes it easy to use permit abilities

18 lines (17 loc) 919 B
import { deleteInterface, FoAzInterface, getInterface, patchInterface, postInterface, putInterface } from './types'; declare class PermitProxy { proxyUrl: string; proxyId: string; token: string; constructor({ proxyId, token }: FoAzInterface); get({ url, params, headers }: getInterface): Promise<import("axios").AxiosResponse<any, any>>; post({ url, data, headers, params }: postInterface): Promise<import("axios").AxiosResponse<any, any>>; put({ url, data, headers, params }: putInterface): Promise<import("axios").AxiosResponse<any, any>>; delete({ url, data, headers, params }: deleteInterface): Promise<import("axios").AxiosResponse<any, any>>; patch({ url, data, headers, params }: patchInterface): Promise<import("axios").AxiosResponse<any, any>>; } export declare class Proxy { constructor(); getProxy: ({ proxyId, token }: FoAzInterface) => PermitProxy; } export {};