UNPKG

522 BTypeScriptView Raw
1import type { ApplicationFunction } from "./types.js";
2import { Logger, ProbotOctokit } from "./index.js";
3import { Server } from "./server/server.js";
4type AdditionalOptions = {
5 env?: NodeJS.ProcessEnv;
6 Octokit?: typeof ProbotOctokit;
7 log?: Logger;
8};
9/**
10 *
11 * @param appFnOrArgv set to either a probot application function: `(app) => { ... }` or to process.argv
12 */
13export declare function run(appFnOrArgv: ApplicationFunction | string[], additionalOptions?: AdditionalOptions): Promise<Server>;
14export {};