/** * Generic public webhook route registry for channel plugins and extensions. * Allows any channel or extension to mount signature-verified webhook ingress * on the Gateway without hardcoding channel-specific routes in core Hono files. * Backed by a `globalThis[Symbol.for(...)]` registry so standalone Electron * extension bundles register routes visible to `out/server/gateway.js`. */ export interface ChannelWebhookRequest { method: string; path: string; rawBody: string; headers: Record; query: Record; } export interface ChannelWebhookResponse { status: number; body?: unknown; text?: string; contentType?: string; headers?: Record; } export type ChannelWebhookHandler = (req: ChannelWebhookRequest) => Promise; export declare function normalizeChannelWebhookPath(rawPath: string): string; export declare function registerChannelWebhookRoute(params: { path: string; ownerId: string; handler: ChannelWebhookHandler; }): () => void; export declare function listRegisteredChannelWebhooks(): Array<{ path: string; ownerId: string; }>; export declare function dispatchChannelWebhook(req: ChannelWebhookRequest): Promise;