/** * Talker Plugin * * Main entry point for integrating talker with chatter via the customRoutes hook. * Creates telephony routes and mounts them on the Hono app. * * @example * ```typescript * import { createServer } from "@diegoaltoworks/chatter"; * import { createTelephonyRoutes } from "@diegoaltoworks/talker"; * * const app = await createServer({ * ...chatterConfig, * customRoutes: (app, deps) => { * createTelephonyRoutes(app, deps, { * twilio: { accountSid, authToken, phoneNumber }, * transferNumber: "+44...", * flowsDir: "./config/flows", * }); * }, * }); * ``` */ import type { ServerDependencies } from "@diegoaltoworks/chatter"; import type { Hono } from "hono"; import type { TalkerConfig } from "./types"; /** * Create and mount telephony routes on a Hono app (chatter plugin mode) */ export declare function createTelephonyRoutes(app: Hono, chatterDeps: ServerDependencies, config: TalkerConfig): Promise;