UNPKG

probot

Version:

A framework for building GitHub Apps to automate and improve your workflow

25 lines (24 loc) • 751 B
import type { Logger } from "pino"; export type SmeeClientOptions = { logger: Logger; source: string; target: string; fetch?: Function | undefined; }; export type SmeeClientConstructor = new (options: SmeeClientOptions) => { start: () => Promise<EventSource>; }; export type SmeeClientModule = { SmeeClient?: SmeeClientConstructor; }; export declare const createWebhookProxy: (opts: WebhookProxyOptions) => Promise<EventSource | undefined>; export interface WebhookProxyOptions { url: string; port: number; path: string; host: string; logger: Logger; fetch?: Function | undefined; smeeClient?: SmeeClientConstructor | undefined; loadSmeeClient?: (() => Promise<SmeeClientModule>) | undefined; }