import { Hono } from "hono"; import type { ServerContext } from "../../framework/types.js"; /** * Create a public API router with integration middleware * This wraps routes with API key auth, rate limiting, and usage logging */ export declare function createPublicRouter(): Hono<{ Variables: ServerContext; }, import("hono/types").BlankSchema, "/">; /** * Helper to get tenant ID from integration context * Use this in public route handlers to ensure tenant isolation */ export declare function getIntegrationTenantId(c: any): string | null; /** * Helper to check if integration key has required scope * Can be used inline in route handlers */ export declare function hasScope(c: any, requiredScope: string): boolean; /** * Middleware to add tenant ID from integration key to context * This makes public routes compatible with existing services that expect tenantId */ export declare const injectTenantFromIntegration: (c: any, next: any) => Promise; //# sourceMappingURL=public-routes-helper.d.ts.map