UNPKG

792 BTypeScriptView Raw
1import type { Server as HttpServer } from "node:http";
2import { type Application } from "express";
3import type { Logger } from "pino";
4import type { ApplicationFunction, ServerOptions } from "../types.js";
5import type { Probot } from "../index.js";
6export declare const defaultWebhooksPath = "/api/github/webhooks";
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<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>;
17 stop(): Promise<unknown>;
18 router(path?: string): import("express-serve-static-core").Router;
19}