UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

20 lines (19 loc) 925 B
import Stream from 'node:stream'; import { type JsonValue } from 'type-fest'; import { type WhookDecoders, type WhookEncoders } from '../services/httpRouter.js'; export declare const DEFAULT_DEBUG_NODE_ENVS: string[]; export declare const DEFAULT_BUFFER_LIMIT = "500kB"; export declare const DEFAULT_PARSERS: { 'application/json': (content: string) => JsonValue; 'text/plain': (content: string) => JsonValue; 'application/x-www-form-urlencoded': (content: string) => JsonValue; }; export declare const DEFAULT_STRINGIFIERS: { 'application/json': (content: JsonValue) => string; 'text/plain': typeof ensureString; 'application/x-www-form-urlencoded': (content: JsonValue) => string; }; export declare const DEFAULT_DECODERS: WhookDecoders<Stream.Transform>; export declare const DEFAULT_ENCODERS: WhookEncoders<Stream.Transform>; declare function ensureString(maybeString: unknown): string; export {};