/** * Git Handler for selective skill download operations */ import { RepositoryInfo, SelectiveDownloadOptions } from './skill-types'; export declare class GitError extends Error { constructor(message: string); } export declare class ValidationError extends Error { constructor(message: string); } export declare class NetworkError extends Error { constructor(message: string); } export declare class GitHandler { private timeout; private retryAttempts; constructor(timeout?: number, retryAttempts?: number); /** * Initialize the GitHandler and verify git availability */ initialize(): Promise; /** * Validate if a URL is a valid git repository */ isValidRepository(url: string): Promise; /** * Get information about a git repository */ getRepositoryInfo(url: string): Promise; /** * Initialize sparse-checkout in a git repository */ initializeSparseCheckout(repoPath: string): Promise; /** * Configure sparse-checkout patterns for specific skill paths */ configureSparseCheckout(repoPath: string, skillPaths: string[]): Promise; /** * Clone a repository with sparse-checkout for a specific skill */ cloneWithSparseCheckout(repoUrl: string, skillPath: string, targetDir: string, options?: SelectiveDownloadOptions): Promise; /** * List available skills in a repository */ listRepositorySkills(repoUrl: string): Promise; /** * Check if git is available on the system */ isGitAvailable(): Promise; /** * Get the git version string */ getGitVersion(): Promise; /** * Helper method to copy directory recursively and track files */ private copyDirectoryRecursively; /** * Helper method for async sleep */ private sleep; } //# sourceMappingURL=git-handler.d.ts.map