export const BASE: "https://api.github.com"; export const HEADERS: { Authorization: string; Accept: string; 'X-GitHub-Api-Version': string; }; /** * Make a GET request to the GitHub REST API. * @param {string} url - Full URL to fetch * @returns {Promise} Response JSON body */ export function request(url: string): Promise; /** * Run a git command and return stdout. * @param {string[]} args - Arguments to pass to git * @returns {Promise} Trimmed stdout */ export function runGit(args: string[]): Promise; /** * Parse owner and repo from a GitHub remote URL. * @param {string} remoteUrl - e.g. "git@github.com:owner/repo.git" * @returns {{owner: string, repo: string}|null} Parsed groups or null */ export function parseOwnerFromUrl(remoteUrl: string): { owner: string; repo: string; } | null; /** * Extract the owner from a GitHub remote URL. * @param {string} remoteUrl * @returns {string|null} */ export function getOwnerFromRemoteUrl(remoteUrl: string): string | null; /** * Extract the repo name from a GitHub remote URL. * @param {string} remoteUrl * @returns {string|null} */ export function getRepoFromRemoteUrl(remoteUrl: string): string | null; /** * Determine the repository owner from the local git remote. * Tries multiple git command variants. * @returns {Promise} */ export function getCurrentOwner(): Promise; /** * Determine the repository name from the local git remote. * Tries multiple git command variants. * @returns {Promise} */ export function getCurrentRepo(): Promise; /** * Get both owner and repo from the local git remote. * @returns {Promise<{owner: string, repo: string}>} */ export function getOwnerRepo(): Promise<{ owner: string; repo: string; }>; /** * Get the latest workflow run for a repository. * When workflowId is provided, filters by that specific workflow (filename or ID). * @param {string} owner - GitHub repository owner * @param {string} repo - GitHub repository name * @param {string} [workflowId] - Workflow filename (e.g. "test.yml") or numeric ID * @returns {Promise} The latest workflow run object */ export function getLatestRun(owner: string, repo: string, workflowId?: string): Promise; /** * Get all jobs for a specific workflow run. * @param {string} owner - GitHub repository owner * @param {string} repo - GitHub repository name * @param {number|string} runId - Workflow run ID * @returns {Promise} Array of job objects */ export function getJobs(owner: string, repo: string, runId: number | string): Promise;