import type { Endpoints } from '@octokit/types'; import { App, Octokit } from 'octokit'; export type GithubInstallation = Endpoints['GET /user/installations']['response']['data']['installations'][0]; export type GithubRepository = Endpoints['GET /user/installations/{installation_id}/repositories']['response']['data']['repositories'][0]; export type GithubUser = Endpoints['GET /user']['response']['data']; export type GithubBranch = Endpoints['GET /repos/{owner}/{repo}/branches']['response']['data'][0]; export declare const getOctokitAppInstance: () => Promise; export declare const getGithubUserToken: (githubAuthorizationCode: string) => Promise; export declare const getGithubApp: () => Promise; export declare const listRepositoriesByOwner: (accessToken: string) => Promise; export declare const listRepositoryBranches: (accessToken: string, repositoryId: string) => Promise; export declare const getUserData: (accessToken: string) => Promise; export declare const listRepositoriesByOwnerLegacy: (githubUserId: string, githubAuthorizationCode: string) => Promise;