UNPKG

735 BTypeScriptView Raw
1import * as Context from './context';
2import { Octokit } from '@octokit/core';
3import { OctokitOptions } from '@octokit/core/dist-types/types';
4export declare const context: Context.Context;
5export declare const GitHub: typeof Octokit & import("@octokit/core/dist-types/types").Constructor<import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api & {
6 paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
7}>;
8/**
9 * Convience function to correctly format Octokit Options to pass into the constructor.
10 *
11 * @param token the repo PAT or GITHUB_TOKEN
12 * @param options other options to set
13 */
14export declare function getOctokitOptions(token: string, options?: OctokitOptions): OctokitOptions;