import { GitHubRepoRef } from "../operations/common/GitHubRepoRef"; import { RepoRef } from "../operations/common/RepoId"; import { SourceLocation } from "../operations/common/SourceLocation"; import { HttpResponse } from "../spi/http/httpClient"; /** * Return a deep link to the file location * @param {GitHubRepoRef} grr * @param {SourceLocation} sourceLocation * @return {string} */ export declare function deepLink(grr: GitHubRepoRef, sourceLocation: SourceLocation): string; /** * Check whether the given file, including path, exists * in the GitHub repo * @param token GitHub token. Don't try to auth if it's undefined or null * @param user * @param repo * @param path * @return {Promise} */ export declare function hasFile(token: string, user: string, repo: string, path: string): Promise; /** * Return file content, or undefined if it's not found * @param {string} token * @param {string} user * @param {string} repo * @param {string} path * @return {Promise} */ export declare function fileContent(token: string, user: string, repo: string, path: string): Promise; export interface Issue { title: string; body: string; state?: "open" | "closed"; assignee?: string; milestone?: number; labels?: string[]; assignees?: string[]; } export declare function raiseIssue(token: string, rr: RepoRef, issue: Issue): Promise>; /** * GitHub commit comment structure */ export interface Comment { body: string; path: string; /** * Line number in the diff */ position: number; } export declare function createCommitComment(token: string, rr: GitHubRepoRef, comment: Comment): Promise>; export declare function createRepo(token: string, rr: GitHubRepoRef, description: string, priv: boolean): Promise>; //# sourceMappingURL=gitHub.d.ts.map