import type { ExtractedContent } from "./extract.ts"; export interface GitHubUrlInfo { owner: string; repo: string; ref?: string; refIsFullSha: boolean; path?: string; type: "root" | "blob" | "tree"; } export declare function parseGitHubUrl(url: string): GitHubUrlInfo | null; export declare function extractGitHub(url: string, signal?: AbortSignal, forceClone?: boolean): Promise; /** Mark the clones these URLs name as used now. A session that restores results from history * (its own, or one it was forked from) holds their clone paths without fetching them again. */ export declare function touchClones(urls: Iterable): void; /** Remove finished clones no fetch has returned since `time`. A host that runs several * sessions at once passes when its oldest live session started: no live session can have * been given those paths, so they are reclaimed while sessions keep overlapping. */ export declare function releaseClonesUnusedSince(time: number): void; export declare function clearCloneCache(): void;