/** * Local Git Provider Implementation * * Implements GitProvider interface for local-only Git repositories. * Suitable for repositories without remote hosting (GitHub, GitLab, etc.). * * @module providers/local-provider */ import { BaseGitProvider, type PlatformConfig, type RepoValidationResult, type OwnerValidationResult, type CreateRepoOptions } from '../git-provider.js'; import type { UrlType } from '../url-generator.js'; /** * Local Git Provider * * Implements Git operations for local-only repositories. * Does not require API tokens or remote hosting. */ export declare class LocalGitProvider extends BaseGitProvider { constructor(config?: Partial); /** * Validate if a local repository exists * owner represents the parent directory path * repo represents the repository directory name */ validateRepository(owner: string, repo: string, token?: string): Promise; /** * Validate if a local directory (owner) exists */ validateOwner(owner: string, token?: string): Promise; /** * Create a new local repository * Note: This creates a bare directory, not a Git repository. * Users should run `git init` separately. */ createRepository(options: CreateRepoOptions, token: string): Promise; /** * Local directories are never organizations */ isOrganization(account: string, token?: string): Promise; /** * Get token creation URL (not applicable for local Git) */ getTokenUrl(): string; /** * Get required token scopes (none for local Git) */ getRequiredScopes(isOrganization?: boolean): string[]; /** * Generate Git remote URL for local repositories * Local repos use file:// protocol */ getRemoteUrl(owner: string, repo: string, urlType: UrlType): string; /** * Override getAuthHeaders (not needed for local Git) */ protected getAuthHeaders(token: string): Record; } /** * Create a Local Git provider instance */ export declare function createLocalGitProvider(config?: Partial): LocalGitProvider; //# sourceMappingURL=local-provider.d.ts.map