/** * 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 { Stores } from "../constants"; import { AuthClientConfig, OIDCProviderMetaData, SessionData, Store, StoreValue, TemporaryData } from "../models"; declare type PartialData = Partial | OIDCProviderMetaData | SessionData | TemporaryData>; export declare const ASGARDEO_SESSION_ACTIVE: string; export declare class DataLayer { protected _id: string; protected _store: Store; constructor(instanceID: string, store: Store); protected setDataInBulk(key: string, data: PartialData): Promise; protected setValue(key: string, attribute: keyof AuthClientConfig | keyof OIDCProviderMetaData | keyof SessionData | keyof TemporaryData, value: StoreValue): Promise; protected removeValue(key: string, attribute: (keyof AuthClientConfig | keyof OIDCProviderMetaData | keyof SessionData | keyof TemporaryData)): Promise; protected _resolveKey(store: Stores | string, userID?: string): string; protected 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(): Promise>; getOIDCProviderMetaData(): Promise; getTemporaryData(userID?: string): Promise; getSessionData(userID?: 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 OIDCProviderMetaData): Promise; getTemporaryDataParameter(key: keyof TemporaryData, userID?: string): Promise; getSessionDataParameter(key: keyof SessionData, userID?: string): Promise; setConfigDataParameter(key: keyof AuthClientConfig, value: StoreValue): Promise; setOIDCProviderMetaDataParameter(key: keyof OIDCProviderMetaData, value: StoreValue): Promise; setTemporaryDataParameter(key: keyof TemporaryData, value: StoreValue, userID?: string): Promise; setSessionDataParameter(key: keyof SessionData, value: StoreValue, userID?: string): Promise; removeConfigDataParameter(key: keyof AuthClientConfig): Promise; removeOIDCProviderMetaDataParameter(key: keyof OIDCProviderMetaData): Promise; removeTemporaryDataParameter(key: keyof TemporaryData, userID?: string): Promise; removeSessionDataParameter(key: keyof SessionData, userID?: string): Promise; } export {}; //# sourceMappingURL=data-layer.d.ts.map