import { AxiosRequestConfig } from 'axios'; import type * as EntityManagerClient from '@rlvt/entity-manager-openapi-client'; export declare type getClientOptions = { type: ClientType; clientId: string; gatewayEndpoint: string; authenticationType: AuthenticationType; onAuthenticationRequired: (options: { currentTokens: Partial; options: getClientOptions; request: AxiosRequestConfig; client: EntityManagerClient.default; }) => Promise; onAuthenticationFailure: (error: Error) => void; onAuthenticationSuccess: (profile: EntityManagerClient.ReturnForMethod<'User', 'list'>[number]) => void; }; export declare enum ClientType { DATASOURCES = "DATASOURCES", ENTITIES = "ENTITIES", WORKFLOWS = "WORKFLOWS", CONTENTS = "CONTENTS" } export declare type Tokens = { accessToken: string; refreshToken: string; }; declare type PasswordGrantType = { type: 'password'; email: string; password: string; }; declare type TokenGrantType = { type: 'refresh_token'; refreshToken: string; }; export declare type AuthenticationType = PasswordGrantType | TokenGrantType; export {};