export declare function errorMessage(err: unknown): string;
export declare function toArgs(body: unknown): Record<string, unknown>;
export declare function parseJsonBody(req: {
    on: (event: string, cb: (...args: any[]) => void) => void;
    destroy?: () => void;
}): Promise<unknown>;
