/** * Explicit in-process backend mount seam shared by `@nifrajs/client` and `@nifrajs/web`. * * A symbol key keeps the mount control path separate from the typed route proxy: an application may * legitimately expose a `/fetch` or `/mount` route without shadowing this interface. The handler gets * the same platform object as the outer app, so Workers bindings and execution lifetime survive an * in-process mount. */ import type { Platform } from "./server/context.js"; /** Global symbol so independently bundled copies of core/client/web still agree on the mount seam. */ export declare const NIFRA_BACKEND_MOUNT: unique symbol; /** Dispatch one already-materialized request into a backend with its outer runtime platform context. */ export type BackendMountHandler = (request: Request, platform?: Platform) => Response | Promise; /** Structural mount capability exposed by an in-process typed client. */ export interface BackendMount { readonly [NIFRA_BACKEND_MOUNT]: BackendMountHandler; } //# sourceMappingURL=mount.d.ts.map