/** * Check if GitHub CLI is installed */ export declare function checkGhCli(): Promise; /** * Check if authenticated with GitHub CLI * Automatically attempts to refresh expired tokens before prompting re-login */ export declare function checkGhAuth(): Promise; /** * Validate all GitHub CLI requirements */ export declare function validateGhCli(): Promise; /** * Get GitHub CLI version * Returns version string like "2.40.1" or null if unable to determine */ export declare function getGhVersion(): Promise; /** * Check if GitHub CLI version meets minimum requirement * @param minVersion - Minimum required version (e.g., "2.4.0") * @returns true if version is sufficient, false otherwise */ export declare function checkGhVersion(minVersion?: string): Promise; /** * Run a GitHub CLI command */ export declare function runGh(args: string[], options?: { silent?: boolean; }): Promise; /** * Run GitHub CLI API command and parse JSON response with retry logic * * For POST and PATCH requests with fields, we always use JSON input via stdin * (`--input -`) to avoid shell escaping issues. This ensures that body content * containing special characters (backticks, parentheses, quotes, etc.) is handled * correctly without shell interpretation. */ export declare function ghApi(endpoint: string, options?: { method?: string; fields?: Record; skipRetry?: boolean; }): Promise; /** * Get current GitHub username */ export declare function getGhUsername(): Promise; /** * Get repository information with retry logic and caching */ export declare function getRepoInfo(cwd?: string): Promise<{ owner: string; name: string; }>; /** * GraphQL query helper with retry logic */ export declare function ghGraphQL(query: string, variables?: Record, options?: { suppressErrors?: boolean; skipRetry?: boolean; }): Promise; //# sourceMappingURL=github-cli.d.ts.map