import { NextRequest, NextResponse } from 'next/server'; interface EarnLayerProxyConfig { apiKey: string; baseUrl?: string; authUrl?: string; onError?: (error: Error) => void; } declare function createEarnLayerProxy(config: EarnLayerProxyConfig): (req: NextRequest) => Promise; export { createEarnLayerProxy }; export type { EarnLayerProxyConfig };