1 | /// <reference types="express" />
|
2 | import { Request, RequestBodyParserOptions } from '../types';
|
3 | import { BodyParser, RequestBody } from './types';
|
4 | export declare class JsonBodyParser implements BodyParser {
|
5 | name: symbol;
|
6 | private jsonParser;
|
7 | constructor(options?: RequestBodyParserOptions);
|
8 | supports(mediaType: string): boolean;
|
9 | parse(request: Request): Promise<RequestBody>;
|
10 | }
|