/**
 * src/web-chat/learn-from-url.ts
 *
 * "Paste a URL → Muassis learns from it" handler. Used by the web-chat
 * preprocessor when a user message looks like a GitHub repo URL or a
 * direct link to a markdown file.
 *
 * Three things we know how to install today:
 *   1. **MCP server repos** (npm-published) — detected by package.json
 *      having a `bin` entry + the README/package referencing MCP.
 *      Adds the package to <dataDir>/mcp.json so the next gateway boot
 *      spawns it and exposes its tools.
 *   2. **Skill markdown files** — direct .md links (raw.githubusercontent
 *      or github.com/blob/.../*.md). Saved to <dataDir>/skills/<file>.md
 *      so loadSkills() picks them up next request.
 *   3. **Skill collections** — repos containing /skills/ or /SKILLS/
 *      directories with .md files. Walks the directory listing and
 *      downloads every .md.
 *
 * No git clone, no local builds — everything via raw HTTP fetches against
 * GitHub's API + raw.githubusercontent. Fast, no deps. If a repo isn't
 * npm-published or has a build step, we tell the user honestly that we
 * can't auto-install it and suggest the manual path.
 */
interface InstallResult {
    ok: boolean;
    reply: string;
}
/** Detect + install from a single GitHub URL. Returns user-facing reply text. */
export declare function learnFromGitHubUrl(url: string): Promise<InstallResult>;
/** Detect a GitHub URL anywhere in the message; return the first one. */
export declare function extractGitHubUrl(message: string): string | null;
export {};
//# sourceMappingURL=learn-from-url.d.ts.map