/** * @license * Copyright 2022-2024 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { MaybeAsyncStorage, SupportedStorageTypes } from "@project-chip/matter.js/storage"; export declare class StorageBackendAsyncStorage extends MaybeAsyncStorage { #private; protected isInitialized: boolean; /** * Creates a new instance of the AsyncStorage storage backend. In a "namespace" is provided then the keys will be * prefixed with the namespace (separated with a # which is normally not used in matter.js keys). */ constructor(namespace?: string); get initialized(): boolean; initialize(): void; close(): void; clear(): any; getContextBaseKey(contexts: string[], allowEmptyContext?: boolean): string; buildStorageKey(contexts: string[], key: string): string; get(contexts: string[], key: string): Promise; set(contexts: string[], key: string, value: SupportedStorageTypes): Promise; set(contexts: string[], values: Record): Promise; delete(contexts: string[], key: string): any; /** Returns all keys of a storage context without keys of sub-contexts */ keys(contexts: string[]): Promise; values(contexts: string[]): Promise>; contexts(contexts: string[]): Promise; clearAll(contexts: string[]): Promise; } //# sourceMappingURL=StorageBackendAsyncStorage.d.ts.map