import { SnapWyrConfig } from '@snapwyr/core'; export { LogEntry, SnapWyrConfig } from '@snapwyr/core'; interface NextRequest { method: string; url: string; nextUrl: { pathname: string; search: string; }; headers: Headers; clone(): NextRequest; text(): Promise; } interface NextResponseInit { status?: number; headers?: Record | [string, string][]; } declare class NextResponseClass { status: number; headers: Headers; static next(init?: NextResponseInit): NextResponseClass; } type ProxyFunction = (request: NextRequest) => NextResponseClass | Promise; /** * @example * ```ts * export const proxy = snapwyr({ logBody: true }); * ``` */ declare function snapwyr(config?: SnapWyrConfig): ProxyFunction; export { snapwyr };