/** * S3 ISR cache invalidation for OpenNext deployments. * * Next.js standalone mode does not expose `x-next-cache-tags` via response * headers (Vercel-only). OpenNext's DynamoDB tag cache never receives * tag-to-path mappings for ISR page routes. When Payload calls * `revalidatePath('/about')`, there's nothing to invalidate in DynamoDB, * so stale S3 cache persists indefinitely. * * This utility deletes the stale S3 cache entry directly, forcing Lambda * to re-render from the database on next request. */ interface Logger { info: (message: string) => void; warn?: (message: string) => void; } /** * Delete the stale S3 ISR cache entry for a page path. * * - No-op when `CACHE_BUCKET_NAME` or `AWS_LAMBDA_FUNCTION_NAME` is not set * - Best-effort: catches all errors, logs via optional logger, never rejects * * @param pagePath - The page path as passed to `revalidatePath()`, e.g. `/about` * @param logger - Optional logger (`payload.logger` satisfies this) */ export declare function invalidateS3Cache(pagePath: string, logger?: Logger): Promise; export {};