import type { Context } from 'hono'; import type { GatewayScope } from './gateway-scopes.js'; export type GatewayPrincipal = { kind: 'owner' | 'device' | 'trusted-proxy'; principalId: string; deviceId?: string; accessSessionId?: string; scopes: readonly GatewayScope[]; }; export declare function setGatewayPrincipal(c: Context, principal: GatewayPrincipal): void; export declare function getGatewayPrincipal(c: Context): GatewayPrincipal;