import { IAction } from '@zaibot/fsa/es5'; import { IResourceDescriptor } from '../resource'; import { IMiddleware } from '../utils'; export interface IJsonResetParams { list?: any; create?: any; read?: any; update?: any; remove?: any; request?: { method: string; url: string; params: { [key: string]: string; }; headers: { [key: string]: string; }; body: any; }; response?: { url: string; headers: { [key: string]: string; }; statusCode: number; statusText: string; body: any; }; ok?: boolean; } export declare function JsonRestMiddleware(url: string, ...middlewares: Array>): (descriptor: IResourceDescriptor) => ({action, descriptor}: { action: IAction; descriptor: IResourceDescriptor<{}>; }) => IterableIterator;