import { IAction } from '@zaibot/fsa'; import { IResourceDescriptor } from '../resource'; export interface IHttpApiHandler { get(path: string): any; post(path: string, entity: any): any; patch(path: string, entity: any): any; put(path: string, entity: any): any; del(path: string, entity: any): any; } export declare function HttpMiddleware(api: IHttpApiHandler, path: string): (descriptor: IResourceDescriptor) => (action: IAction, next: any) => IterableIterator;