import { s as FeatureRegistry } from "../types-3EaBC58c.js"; import { c as SubscriptionsHttpOptions, t as Subscriptions } from "../index-gRqfQZ6n.js"; //#region src/integrations/hono.d.ts /** * Minimal structural shape of a Hono context (avoids requiring hono types) */ interface HonoLikeContext { req: { raw: Request; }; } /** * Minimal structural shape of a Hono app/sub-router (avoids requiring hono * types at build time). The real `Hono` instance satisfies this interface. */ interface HonoLikeApp { fetch(request: Request, ...args: unknown[]): Response | Promise; all(path: string, handler: (c: HonoLikeContext) => unknown): HonoLikeApp; route(path: string, app: unknown): HonoLikeApp; } /** * Create a Hono sub-router serving the subscription API. * * All requests reaching the sub-router are forwarded to the shared * web-standard handler, which locates its configured prefix (default * `/subscriptions`) anywhere in the request path — so the router can be * mounted under any base path. * * `hono` is an optional peer dependency and is imported lazily. * * @example * ```typescript * import { Hono } from 'hono'; * import { honoPlugin } from '@abshahin/subscriptions/integrations/hono'; * * const app = new Hono(); * app.route('/api', await honoPlugin(subs)); * ``` */ declare function honoPlugin(subs: Subscriptions, options?: SubscriptionsHttpOptions): Promise; //#endregion export { HonoLikeApp, HonoLikeContext, honoPlugin }; //# sourceMappingURL=hono.d.ts.map