/** * Node-only decoder for the request bodies produced by `packages/browser/src/request.ts`'s `encodePostData`. * * Supports: * - no compression: `data=` * - `compression=base64`: `data=` (still urlencoded) * - `compression=gzip-js`: raw gzip bytes in the body * * Lifted from here: https://github.com/PostHog/posthog-js/blob/7be7982848185276527d9222413187b876527dfe/packages/browser/functional_tests/mock-server.ts#L16 */ export declare const decodePostData: (body: unknown, url: string) => unknown; /** * Attempts to re-encode the data into the same format as the original request. */ export declare const encodePostData: (data: unknown, url: string) => { body: Buffer | string; headers: Record; }; //# sourceMappingURL=router.body.d.ts.map