import { PassThrough, type Transform } from 'node:stream'; import { type JsonValue } from 'type-fest'; import { type WhookRequestBodySpec } from './body.js'; import { NodeEnv } from 'application-services'; export type WhookParser = (content: string, bodySpec?: WhookRequestBodySpec) => JsonValue; export type WhookParsers = Record; export type WhookStringifyer = (content: string) => string; export type WhookStringifiers = Record; export type WhookEncoder = () => T; export type WhookEncoders = Record>; export type WhookDecoder = () => T; export type WhookDecoders = Record>; export declare const DEFAULT_DEBUG_NODE_ENVS: NodeEnv[]; export declare const DEFAULT_BUFFER_LIMIT = "500kB"; export declare const DEFAULT_PARSERS: { 'text/plain': (content: string) => JsonValue; 'application/json': (content: string) => JsonValue; 'application/x-www-form-urlencoded': (content: string) => JsonValue; }; export declare const DEFAULT_STRINGIFIERS: { 'text/plain': typeof ensureString; 'application/json': (content: JsonValue) => string; 'application/x-www-form-urlencoded': (content: JsonValue) => string; }; export declare const DEFAULT_DECODERS: { 'utf-8': () => PassThrough; }; export declare const DEFAULT_ENCODERS: { 'utf-8': () => PassThrough; }; declare function ensureString(maybeString: unknown): string; export {};