import * as _wooksjs_event_core from '@wooksjs/event-core'; /** Short names for common Content-Type values. */ type KnownContentType = 'json' | 'html' | 'xml' | 'text' | 'binary' | 'form-data' | 'urlencoded'; /** * Composable that provides request body parsing utilities for various content types. * * @example * ```ts * app.post('/api/data', async () => { * const { is, parseBody } = useBody() * if (is('json')) { * const data = await parseBody<{ name: string }>() * return { received: data.name } * } * }) * ``` * * @returns Object with `is(type)` checker, `parseBody` function, and `rawBody` accessor. */ declare const useBody: _wooksjs_event_core.WookComposable<{ is: (type: KnownContentType | (string & {})) => boolean; parseBody: () => Promise; rawBody: () => Promise>; }>; export { useBody }; export type { KnownContentType };