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