import { NextApiRequest } from 'next'; export declare function getBody(request: NextApiRequest): T; export declare function getQuery(request: NextApiRequest): T; export declare function getPageFromQuery(request: NextApiRequest): number; export declare function data(input: Input): { data: Input; }; export declare function error(input: string[] | string): { errors: string[]; error?: undefined; } | { error: string; errors?: undefined; }; export declare function errors(input: string[]): { errors: string[]; error?: undefined; } | { error: string; errors?: undefined; };