UNPKG

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