1 |
|
2 | import { Server as HttpServer } from "http";
|
3 | import { Application } from "express";
|
4 | import { Logger } from "pino";
|
5 | import { ApplicationFunction, ServerOptions } from "../types";
|
6 | import { Probot } from "../";
|
7 | export 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 | }
|