UNPKG

@betha-plataforma/estrutura-componentes

Version:

Coleção de Web Components para compor a estrutura de uma aplicação front-end da Betha Sistemas.

15 lines (14 loc) 596 B
import { Authorization, AuthorizationConfig } from './interfaces'; export declare const isValidAuthorizationConfig: (authorization: AuthorizationConfig) => boolean; export interface PaginationQueryParams { offset?: number; limit?: number; } export declare class Api { private authorization; private handleUnauthorizedAccess; private baseUrl; constructor(authorization: Authorization, handleUnauthorizedAccess: () => Promise<void>, baseUrl: string); request(method: string, path: string, retryUnauthorizedAccess?: boolean): Promise<Response>; private getHeaders; }