import { ServerRequest } from '@frontmcp/sdk'; export declare function trimSlashes(s: string): string; /** Normalize entryPath (gateway prefix) to "" or "/mcp" */ export declare function normalizeEntryPrefix(entryPath?: string): string; /** Normalize a scope base (per-app or per-auth) to "" or "/app1" */ export declare function normalizeScopeBase(scopeBase?: string): string; /** Join URL path segments with a single slash and no trailing slash */ export declare function joinPath(...parts: string[]): string; export declare function getRequestBaseUrl(req: ServerRequest, entryPath?: string): string; export declare function computeIssuer(req: ServerRequest, entryPath: string, scopeBase: string): string; export declare function computeResource(req: ServerRequest, entryPath: string, scopeBase: string): string; /** Derive a safe provider id from a URL when no id is provided. */ export declare function urlToSafeId(url: string): string | undefined; /** * Build all path variants for a given well-known name: * - reversed under root: /.well-known/ * - in prefix root: /.well-known/ * - in prefix + scope: /.well-known/ */ export declare function makeWellKnownPaths(name: string, entryPrefix: string, scopeBase?: string): Set;