import { IOEndpoint, IOPromise } from 'type-r'; export declare type Index = (number | string)[]; export declare function create(init?: any[], delay?: number): MemoryEndpoint; export { create as memoryIO }; export declare class MemoryEndpoint implements IOEndpoint { delay: number; resolve(value: any): IOPromise; reject(value: any): IOPromise; constructor(init: object[], delay: number); index: Index; items: {}; generateId(a_id: any): any; create(json: any, options: any): IOPromise; update(id: any, json: any, options: any): IOPromise; read(id: any, options: any): IOPromise; destroy(id: any, options: any): IOPromise; list(options?: object): IOPromise; subscribe(events: any): any; unsubscribe(events: any): any; }