/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
 */
/**
 * @module storage
 */
import type { IAsyncStorage, IStorage, StorageValueType } from "../../types/index";
import { type WebStorageStrategy } from "./engines/local-storage-provider";
export declare class AsyncStorage<T = StorageValueType> implements IAsyncStorage<T> {
    private provider;
    protected constructor(provider: Promise<IStorage<T> | IAsyncStorage<T>>, suffix?: string);
    readonly prefix: string;
    set(key: string, value: T): Promise<this>;
    delete(key: string): Promise<this>;
    get<R = T>(key: string): Promise<R | void>;
    exists(key: string): Promise<boolean>;
    clear(): Promise<this>;
    close(): Promise<void>;
    static makeStorage(persistentOrStrategy?: boolean | WebStorageStrategy | 'memoryStorage' | 'indexedDB', suffix?: string): IAsyncStorage;
}
