The three calls the widget makes on a store. localStorage satisfies it.

interface StorageLike {
    getItem(key: string): null | string;
    removeItem(key: string): void;
    setItem(key: string, value: string): void;
}

Methods