import { IOEndpoint, IOOptions, IOPromise } from 'type-r'; export declare type Index = number[]; export declare function create(key: string): LocalStorageEndpoint; export { create as localStorageIO }; export declare class LocalStorageEndpoint implements IOEndpoint { key: string; constructor(key: string); resolve(value: any): IOPromise; reject(value: any): IOPromise; create(json: any, options: IOOptions): IOPromise; set(json: any): void; get(id: any): any; update(id: any, json: any, options: IOOptions): IOPromise; read(id: any, options: IOOptions): IOPromise; destroy(id: any, options: IOOptions): IOPromise; index: (string | number)[]; list(options?: IOOptions): IOPromise; subscribe(events: any): any; unsubscribe(events: any): any; }