jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
25 lines (24 loc) • 972 B
TypeScript
/*!
* 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
*/
/**
* [[include:core/storage/README.md]]
* @packageDocumentation
* @module storage
*/
import type { IStorage, StorageValueType } from "../../types/index";
import { type WebStorageStrategy } from "./engines/local-storage-provider";
export declare const StorageKey: string;
export declare class Storage<T = StorageValueType> implements IStorage<T> {
readonly provider: IStorage<T>;
readonly prefix: string;
set(key: string, value: T): this;
delete(key: string): this;
get<R = T>(key: string): R | void;
exists(key: string): boolean;
clear(): this;
protected constructor(provider: IStorage<T>, suffix?: string);
static makeStorage(persistentOrStrategy?: boolean | WebStorageStrategy, suffix?: string): IStorage;
}