export type StorageItemOptions = { area?: chrome.storage.AreaName; defaultValue?: T; }; export declare class StorageItem< /** Only specify this if you don't have a default value */ Base, /** The return type will be undefined unless you provide a default value */ Return = Base | undefined> { #private; readonly area: chrome.storage.AreaName; readonly defaultValue?: Return; readonly key: string; constructor(key: string, { area, defaultValue, }?: StorageItemOptions>); get(): Promise; set(value: Exclude): Promise; has(): Promise; remove(): Promise; onChanged(callback: (value: Exclude) => void, signal?: AbortSignal): void; }