import { EnvironmentType } from '../enum/environment.type'; import { IEncryptionDriver } from '../interfaces/encryption-driver.interface'; import { IRequestDriver } from '../interfaces/request-driver.interface'; export interface IFgBaseAPIConstructorParams { requestDriver: IRequestDriver; encryptionDriver: IEncryptionDriver; baseUrl: string | null; opts: any; credentialObject: any | null; } export declare class FgBaseAPI { isProduction: boolean; environment: EnvironmentType; credential: any | null; credentialToken: string | null; credentialOnLogin: Function | null; private _encryptionDriver; private _requestDriver; private _opts; private _baseUrl; constructor({ requestDriver, encryptionDriver, baseUrl, opts, credentialObject }: IFgBaseAPIConstructorParams); protected get requestDriver(): IRequestDriver; protected get encryptionDriver(): IEncryptionDriver; get token(): string | null; get baseUrl(): string; set baseUrl(url: string); protected _get(url: string, _query?: any): Promise; protected _getString(url: string, _query?: any): Promise; protected _getBlob(url: string, _query?: any): Promise; protected _delete(url: string, _data?: any, extraHeaders?: Record | null): Promise; protected _patch(url: any, data: any, extraHeaders?: Record | null): Promise; protected _post(url: string, data: any, extraHeaders?: Record | null): Promise; protected _upload(baseUrl: string, url: string, data: any, projectId: string, content: string | Blob, fileName: string, extraHeaders?: Record | null): Promise; private _processResult; protected _afterLoad(): void; protected _createHeaders(extraHeaders?: Record | null): Record; }