import Octokit from '@octokit/rest'; /** * * Github functions * */ export interface GithubRepository { id?: number; owner: { id?: number; login: string; }; name: string; full_name: string; } /** * * Converts Github repository name to GithubRepository * * @param name */ export declare function getRepositoryFromName(name: string): GithubRepository | null; export interface GithubIssue { id: number; number: number; state: string; title: string; body: string; labels: GithubLabel[]; } /** * * Obtains all issues in a particular repository. * * @param github * @param repository */ export declare const getRepositoryIssues: (github: Octokit, repository: GithubRepository) => Promise; export interface GithubLabel { id?: number; node_id?: string; url?: string; name: string; description: string; color: string; default: boolean; } /** * * Obtains all labels used in particular repository. * * @param github * @param repository */ export declare const getRepositoryLabels: (github: Octokit, repository: GithubRepository) => Promise; /** * * Compares two labels by comparing all of their keys. * * @param label */ export declare function isLabel(local: GithubLabel): (remote: GithubLabel) => boolean;