UNPKG

638 BTypeScriptView Raw
1/// <reference types="node" />
2import { Server as HttpServer } from "http";
3import { Application } from "express";
4import { Logger } from "pino";
5import { ApplicationFunction, ServerOptions } from "../types";
6import { Probot } from "../";
7export declare class Server {
8 static version: string;
9 expressApp: Application;
10 log: Logger;
11 version: string;
12 probotApp: Probot;
13 private state;
14 constructor(options?: ServerOptions);
15 load(appFn: ApplicationFunction): Promise<void>;
16 start(): Promise<HttpServer>;
17 stop(): Promise<unknown>;
18 router(path?: string): import("express-serve-static-core").Router;
19}