import { NextResponse } from "next/server"; export interface P1MiddlewareConfig { /** * Base URL of the API. Defaults to the production backend when unset or * blank — P1ContentClient (from @pantheon-systems/css-client) owns that * fallback, so it's applied consistently for every consumer that * constructs one, not just this middleware. */ cssBaseUrl?: string; apiToken: string; /** * Site to look up redirects for. When blank, the middleware passes * every request through without contacting the API. */ siteId: string; } export declare function createP1Middleware(config: P1MiddlewareConfig): (request: Request) => Promise>;