/** * Lightweight core bridge connecting Gateway Hono/Realtime to the bundled Slack * extension without introducing circular imports or eager SDK loading. * Backed by a `globalThis[Symbol.for(...)]` slot so standalone Electron extension * bundles share state with `out/server/gateway.js`. */ export interface SlackWebhookIncomingRequest { path: string; rawBody: string; contentType: string; signature: string; timestamp: string; } export interface SlackWebhookOutgoingResponse { status: number; body?: unknown; text?: string; contentType?: string; } type SlackWebhookDispatcher = (req: SlackWebhookIncomingRequest) => Promise; type SlackRealtimePublisher = (event: Record) => void; export declare function setSlackWebhookDispatcher(dispatcher: SlackWebhookDispatcher | undefined): void; export declare function dispatchSlackWebhookViaBridge(req: SlackWebhookIncomingRequest): Promise; export declare function setSlackRealtimeEventPublisher(publisher: SlackRealtimePublisher | undefined): void; export declare function publishSlackRealtimeEvent(event: Record): void; export {};