/** * Dispatcher-presence check. * * The canonical Next.js dispatcher route emitted by the * `@angriff36/manifest/projections/nextjs` projection lives at: * * app/api/manifest/[entity]/commands/[command]/route.ts * * (or any of the legal Next.js variants under `src/app/...`.) * * Downstream apps that adopt Manifest's governance contract MUST host the * dispatcher there. The `route-drift` detector flags routes that bypass * the dispatcher; this check is the complement — it verifies the canonical * dispatcher actually exists. Without it, the rest of the governance * stack has nowhere to route writes through. * * Pure static check, no runtime, no IR compilation. */ export interface DispatcherPresenceResult { found: boolean; /** Repo-root-relative path of the dispatcher route, if found. */ path?: string; /** All candidate paths the check looked at, in priority order. */ candidatesSearched: string[]; } /** * Look for the canonical dispatcher route under `root`. Returns the first * matching candidate path (relative to `root`), or `found: false` if none * of the candidates exist. * * The check does NOT look inside `apps//` subdirectories — multi-app * monorepos have to opt in explicitly through configuration, since * deciding which app should host the dispatcher is project-specific. * Pass the specific app's root as `root` to scope the check. */ export declare function checkDispatcherPresence(root: string): Promise; //# sourceMappingURL=dispatcher-presence.d.ts.map