export type ValidationError = Readonly<{
    code: string;
    message: string;
}>;
export declare const RequestValidator: Readonly<{
    parseJson: (body: string) => {
        ok: true;
        value: Record<string, unknown>;
    } | {
        ok: false;
        error: ValidationError;
    };
    requirePost: (method: string | undefined) => ValidationError | null;
}>;
//# sourceMappingURL=RequestValidator.d.ts.map