/** * Copyright (c) 2020, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { AuthClientConfig } from './__legacy__/models'; import { OIDCDiscoveryApiResponse } from './models/oidc-discovery'; import { SessionData } from './models/session'; import { Stores, Storage, TemporaryStore, TemporaryStoreValue } from './models/store'; type PartialData = Partial | OIDCDiscoveryApiResponse | SessionData | TemporaryStore>; export declare const ASGARDEO_SESSION_ACTIVE: string; declare class StorageManager { protected id: string; protected store: Storage; constructor(instanceID: string, store: Storage); protected setDataInBulk(key: string, data: PartialData): Promise; protected setValue(key: string, attribute: keyof AuthClientConfig | keyof OIDCDiscoveryApiResponse | keyof SessionData | keyof TemporaryStore, value: TemporaryStoreValue): Promise; protected removeValue(key: string, attribute: keyof AuthClientConfig | keyof OIDCDiscoveryApiResponse | keyof SessionData | keyof TemporaryStore): Promise; protected resolveKey(store: Stores | string, userId?: string, instanceId?: string): string; protected static isLocalStorageAvailable(): boolean; setConfigData(config: Partial>): Promise; setOIDCProviderMetaData(oidcProviderMetaData: Partial): Promise; setTemporaryData(temporaryData: Partial, userId?: string): Promise; setSessionData(sessionData: Partial, userId?: string): Promise; setCustomData(key: string, customData: Partial, userId?: string): Promise; getConfigData(userId?: string): Promise>; loadOpenIDProviderConfiguration(): Promise; getTemporaryData(userId?: string): Promise; getPersistedData(userId?: string): Promise; setPersistedData(persistedData: Partial, userId?: string): Promise; getSessionData(userId?: string, instanceId?: string): Promise; getCustomData(key: string, userId?: string): Promise; setSessionStatus(status: string): void; getSessionStatus(): string; removeSessionStatus(): void; removeConfigData(): Promise; removeOIDCProviderMetaData(): Promise; removeTemporaryData(userId?: string): Promise; removeSessionData(userId?: string): Promise; getConfigDataParameter(key: keyof AuthClientConfig): Promise; getOIDCProviderMetaDataParameter(key: keyof OIDCDiscoveryApiResponse): Promise; getTemporaryDataParameter(key: keyof TemporaryStore, userId?: string): Promise; getSessionDataParameter(key: keyof SessionData, userId?: string): Promise; setConfigDataParameter(key: keyof AuthClientConfig, value: TemporaryStoreValue): Promise; setOIDCProviderMetaDataParameter(key: keyof OIDCDiscoveryApiResponse, value: TemporaryStoreValue): Promise; setTemporaryDataParameter(key: keyof TemporaryStore, value: TemporaryStoreValue, userId?: string): Promise; setSessionDataParameter(key: keyof SessionData, value: TemporaryStoreValue, userId?: string): Promise; removeConfigDataParameter(key: keyof AuthClientConfig): Promise; removeOIDCProviderMetaDataParameter(key: keyof OIDCDiscoveryApiResponse): Promise; removeTemporaryDataParameter(key: keyof TemporaryStore, userId?: string): Promise; removeSessionDataParameter(key: keyof SessionData, userId?: string): Promise; } export default StorageManager; //# sourceMappingURL=StorageManager.d.ts.map