import type { BuildOptions } from "@opennextjs/aws/build/helper.js"; /** * Patches a bundle's usage of @vercel/og for Cloudflare Workers. * * The server and middleware call this separately before esbuild, with their own traces and * output directories. Traced Node entries identify the edge library to copy and patch. * An unreadable trace keeps OG enabled, but errors preparing a traced library still throw. * * @param buildOpts Build options. * @param bundle The destination bundle root and the Next.js traces used by that bundle. * @returns Whether OG is traced by the bundle, or its usage cannot be determined. * @throws When a required library or compiled entry file cannot be read, copied, or patched. */ export declare function patchVercelOgLibrary(buildOpts: BuildOptions, bundle: { outputDir: string; traceFiles: string[]; }): boolean;