export declare function RestMiddleware(options: { url: string; id: string; }): (context: any, next: any) => IterableIterator;