import type { AnalysisUnit } from "../../../../core/ports/analysis-unit.port.js"; import type { DeclaredRouter, ServeRoot } from "../../../../core/ports/config.port.js"; import type { ISourceParser } from "../../../../core/ports/parser.port.js"; import type { Diagnostic } from "../../../../core/domain/facts/diagnostic.js"; import type { DraftEndpointFact } from "../../merge/merge-table.js"; export type GoRouterResult = { readonly facts: readonly DraftEndpointFact[]; readonly diagnostics: readonly Diagnostic[]; }; export type GoRouterRequest = { readonly unit: AnalysisUnit; readonly parser: ISourceParser; readonly routers: readonly DeclaredRouter[]; readonly serveRoots: readonly ServeRoot[]; }; /** * Route registrations written against a router VALUE: the receiver is followed * back to the construction it came from, and the prefix chain is whatever that * value was mounted at. */ export declare function detectGoRouterRoutes(request: GoRouterRequest): GoRouterResult;