import { type Context, type MiddlewareHandler } from 'hono'; import type { CallerAuthRequestContext } from '../ports/caller-auth.js'; import type { CallerAuthScheme } from '../personal-passthrough/caller-auth.js'; import { GatewayError } from '../router/errors.js'; export declare const parseCallerCredential: (headers: Readonly>) => { scheme: CallerAuthScheme; token: string; } | undefined; export declare const bridgeHeaders: (token: string, scheme: CallerAuthScheme, headers: Readonly>) => Headers | undefined; export declare const runAuthBridge: (middleware: MiddlewareHandler, headers: Headers, context: CallerAuthRequestContext, project: (c: Context) => T) => Promise; export declare const authUnavailable: () => GatewayError; //# sourceMappingURL=auth-bridge.d.ts.map