import type { ServeRoot } from "../../../../core/ports/config.port.js"; import type { SyntaxNode } from "../../../../infrastructure/parser/ts-utils.js"; import type { GoImportIndex } from "../../index/go/imports.js"; import type { GoPackageIndex } from "../../index/go/packages.js"; export type ResolvedServeRoot = { readonly declaration: SyntaxNode; readonly relPath: string; readonly directory: string; readonly imports: GoImportIndex; readonly result: number; readonly mount: string; }; /** * Resolves a declared anchor to the one declaration it names. Zero matches and * several matches are both refusals: an anchor that named a set would compose * routes from whichever member the index happened to order first. */ export declare function resolveServeRoot(entry: ServeRoot, packages: GoPackageIndex): ResolvedServeRoot | null; /** The operands a declaration returns, in the order its returns appear. */ export declare function returnOperands(declaration: SyntaxNode, index: number): readonly SyntaxNode[];