import type { InitOptions, RepoAccessResult } from './types.js'; /** * Discover a GitHub token from available sources. * * Priority: * 1. `GITHUB_TOKEN` environment variable * 2. `gh auth token` CLI command (GitHub CLI) * * @returns The token string, or `null` if no credentials are found. */ export declare function discoverGitHubToken(): string | null; /** * Validate GitHub API access for a list of repositories. * * For each repo (`owner/repo`), issues a GET request to the GitHub API * and checks response status and permissions. * * @param repos - Array of repositories in `owner/repo` format. * @param token - GitHub API token for authorization. * @returns Array of access results, one per repo. */ export declare function validateRepoAccess(repos: string[], token: string): Promise; /** * Run GitHub access validation for all repos in the init options. * * This is an **advisory** check — warnings are printed for inaccessible * or read-only repos, but the init flow is never aborted. * * @param options - Resolved init options (uses repos and `skipGithubCheck`). */ export declare function runGitHubValidation(options: InitOptions): Promise; //# sourceMappingURL=github.d.ts.map