import { ApiConfig, RolePermissionInterface, ApiListType } from "./interfaces/index.js"; declare global { interface Window { __CHURCHAPPS_API_HELPER__?: ApiHelperClass; } var __CHURCHAPPS_API_HELPER__: ApiHelperClass | undefined; } declare class ApiHelperClass { apiConfigs: ApiConfig[]; isAuthenticated: boolean; onRequest?: (url: string, requestOptions: any) => void; onError?: (url: string, requestOptions: any, error: any) => void; getConfig(keyName: string): ApiConfig; setDefaultPermissions(jwt: string): void; setPermissions(keyName: string, jwt: string, permissions: RolePermissionInterface[]): void; clearPermissions(): void; get(path: string, apiName: ApiListType): Promise; getAnonymous(path: string, apiName: ApiListType): Promise; post(path: string, data: any[] | {}, apiName: ApiListType): Promise; patch(path: string, data: any[] | {}, apiName: ApiListType): Promise; delete(path: string, apiName: ApiListType): Promise; deleteAnonymous(path: string, apiName: ApiListType): Promise; postAnonymous(path: string, data: any[] | {}, apiName: ApiListType): Promise; fetchWithErrorHandling(url: string, requestOptions: any): Promise; private throwApiError; } export declare const ApiHelper: ApiHelperClass; export type { ApiHelperClass }; //# sourceMappingURL=ApiHelper.d.ts.map