UNPKG

804 BTypeScriptView Raw
1/// <reference types="node" />
2import { Options } from "./types";
3import { Probot } from "./probot";
4declare type CreateProbotOptions = {
5 overrides?: Options;
6 defaults?: Options;
7 env?: NodeJS.ProcessEnv;
8};
9/**
10 * Merges configuration from defaults/environment variables/overrides and returns
11 * a Probot instance. Finds private key using [`@probot/get-private-key`](https://github.com/probot/get-private-key).
12 *
13 * @see https://probot.github.io/docs/configuration/
14 * @param defaults default Options, will be overwritten if according environment variable is set
15 * @param overrides overwrites defaults and according environment variables
16 * @param env defaults to process.env
17 */
18export declare function createProbot({ overrides, defaults, env, }?: CreateProbotOptions): Probot;
19export {};