/** * routes/channel-test.ts * * Handler for `channels.test.send`, a live per-channel test-message probe over * the daemon's own `ChannelDeliveryRouter`. Registered from * register-gateway-verb-groups when the delivery router is present (the same * composition root that wires ci and checkin), so the daemon, which owns the * delivery/retest lifecycle, is authoritative over whether a channel actually * sends. * * Honesty contract: the router throws when a target is unsupported (no strategy * for the surface) or a strategy's delivery fails. Those are caught and surfaced * as a structured `delivered:false` outcome carrying the real error string, a * 200 body the caller can branch on, NOT a fabricated success and NOT a blanket * 500. Only a missing/invalid `surface` argument is a thrown 400. */ import type { GatewayMethodCatalog } from '../method-catalog.js'; import type { GatewayMethodHandler } from '../method-catalog-shared.js'; import type { ChannelDeliveryRouter } from '../../channels/delivery-router.js'; /** The delivery surface `channels.test.send` needs, just `deliver`. */ export type ChannelTestDeliveryRouter = Pick; export declare function createChannelTestSendHandler(router: ChannelTestDeliveryRouter): GatewayMethodHandler; /** * Attach the `channels.test.send` handler to its already-registered descriptor. * A missing descriptor is a silent no-op (mirrors the checkpoints/fleet * registration sites). */ export declare function registerChannelTestGatewayMethods(catalog: GatewayMethodCatalog, router: ChannelTestDeliveryRouter): void; //# sourceMappingURL=channel-test.d.ts.map