import type { AnalysisUnit } from "../../../core/ports/analysis-unit.port.js"; import type { DeclaredRouter } 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 PythonDslRequest = { readonly unit: AnalysisUnit; readonly parser: ISourceParser; readonly routers: readonly DeclaredRouter[]; }; export type PythonDslResult = { readonly facts: readonly DraftEndpointFact[]; readonly diagnostics: readonly Diagnostic[]; }; /** * Route registrations written as a declaration DSL: a call whose callee is the * declared type, or a local subclass of it, carrying the path and the handler * as arguments. */ export declare function detectPythonDslRoutes(request: PythonDslRequest): PythonDslResult;