import { CodemodeClient } from "./index.js"; import { type CodemodeClientProvider } from "./environment.js"; export declare const CODEMODE_SITE_LOCAL_PATH: "/__opengeni/site-tools"; export type CodemodeSiteRequestHandler = (request: Request) => Promise; /** * Same-origin local Site preview adapter. The Bun host retains the exact * attempt bearer; browser code receives only the ordinary Site tool protocol. * Page SDK requests are Site code: only the `SITE_OPERATIONS` allowlist is * forwarded, marked as a preview frame, so the API records the preview as * their origin and keeps the page to the sessions it started. */ export declare function createCodemodeSiteRequestHandler(client?: CodemodeClient | CodemodeClientProvider): CodemodeSiteRequestHandler;