UNPKG

@telstra/core

Version:
20 lines (19 loc) 971 B
import { IAuthCredentials, IAuthTokenData } from '../../authentication/index.js'; import { IConfigurationService } from '../index.js'; /** * @class ConfigurationService * @description Configuration service to manage the configuration data. Everything to do with the configuration data is managed here. * Including authentication credentials, authentication token, and authentication token retry count. * @implements {IConfigurationService} * @exports ConfigurationService * */ export declare class ConfigurationService implements IConfigurationService { private readonly _storage; setAuthCredentials(authCredentials: IAuthCredentials): Promise<boolean>; getAuthCredentials(): Promise<IAuthCredentials | null>; setAuthTokenData(authTokenData: IAuthTokenData): Promise<boolean>; getAuthTokenData(): Promise<IAuthTokenData | null>; setAuthTokenRetryCount(retryCount: number): Promise<boolean>; getAuthTokenRetryCount(): Promise<number>; }