UNPKG

balena-settings-storage

Version:
14 lines (13 loc) 481 B
import type { StorageFactory, StorageLike } from '../types'; export declare class NodeStorage implements StorageLike { private dataDirectory; private initialized; constructor(dataDirectory: string); private init; private getPath; clear(): Promise<void>; getItem(key: string): Promise<string | null>; setItem(key: string, data: string): Promise<void>; removeItem(key: string): Promise<void>; } export declare const createStorage: StorageFactory;