import { ForgeOSClient } from "../shared/client.js"; import type { ForgeResponse } from "../shared/types.js"; declare function mcpResult(envelope: ForgeResponse): { content: { type: "text"; text: string; }[]; }; /** * Canonicalize a git remote URL so the same repository in different forms * compares equal (#137). * * Normalizes: * - scheme: ssh `git@github.com:foo/bar` and https `https://github.com/foo/bar` * both reduce to `github.com/foo/bar` * - other ssh/git/http(s) schemes (`ssh://git@host/...`, `git://host/...`) * - optional embedded credentials (`https://user:tok@host/...`) * - trailing `.git` suffix * - trailing slashes * - case (host + path lowercased — GitHub/GitLab paths are case-insensitive in practice) * * Returns the canonical `host/path` string, or "" when the input is empty. */ export declare function canonicalizeRepoUrl(raw: string | null | undefined): string; export declare function createHandleTool(forgeClient: ForgeOSClient): (name: string, rawArgs: Record) => Promise>; export declare function handleTool(name: string, rawArgs: Record): Promise>; export {}; //# sourceMappingURL=handlers.d.ts.map