import type http from "node:http"; import type { ChatScope } from "../types/chat.js"; export declare const PUBLIC_LOCAL_DEV_USER_ID_HEADER = "x-orchestra-user-id"; export interface PublicApiPrincipal { id: string; displayName: string; source: "local_dev_header"; } export interface PublicApiAuthContext { requestId: string; principal: PublicApiPrincipal; scope: ChatScope; rateLimitKey: string; } export declare function authenticatePublicApiRequest(input: { request: http.IncomingMessage; requestId: string; workspaceKey: string; }): PublicApiAuthContext; export declare function workspaceKeyForRoot(root: string): string;