import type { Octokit as RestOctokit } from '@octokit/rest' with { 'resolution-mode': 'import' }; type OctokitRestModule = typeof import('@octokit/rest', { with: { 'resolution-mode': 'import' } }); type OctokitCoreModule = typeof import('@octokit/core', { with: { 'resolution-mode': 'import' } }); type OctokitAuthAppModule = typeof import('@octokit/auth-app', { with: { 'resolution-mode': 'import' } }); export declare function loadOctokitRest(): Promise; export declare function loadOctokitCore(): Promise; export declare function loadOctokitAuthApp(): Promise; export declare function baseUrlFromDomain(domain: string): string; type RunnerLevel = 'repo' | 'org' | undefined; export interface GitHubSecrets { domain: string; appId: number; personalAuthToken: string; runnerLevel: RunnerLevel; } export declare function getOctokit(installationId?: number): Promise<{ octokit: RestOctokit; githubSecrets: GitHubSecrets; }>; export declare function getAppOctokit(): Promise; export declare function getRunner(octokit: RestOctokit, runnerLevel: RunnerLevel, owner: string, repo: string, name: string): Promise<{ id: number; runner_group_id?: number; name: string; os: string; status: string; busy: boolean; labels: import("@octokit/openapi-types").components["schemas"]["runner-label"][]; ephemeral?: boolean; } | undefined>; export declare function deleteRunner(octokit: RestOctokit, runnerLevel: RunnerLevel, owner: string, repo: string, runnerId: number): Promise; export declare function redeliver(octokit: RestOctokit, deliveryId: bigint): Promise; /** * Did GitHub tell us it can't see this? Used to tell "we have no access" apart from a real failure, because the * first is permanent and retrying it forever costs rate limit we need for starting runners. */ export declare function isNotFound(e: unknown): boolean; /** * Find installation id for our app. Normal code path gets this from the webhook payload, but we schedule these ourselves. * * If the repository cannot be found (e.g. the app was uninstalled), this will throw a 404 error. Use `isNotFound` to check for that case. * * @internal */ export declare function resolveInstallationId(owner: string, repo: string): Promise; export {};