import type { H3Event } from "h3"; import { type AuthSession } from "./auth.js"; export interface BuilderDesktopGatewayAuth { authorization: string; spaceId: string | null; userId: string | null; } export interface BuilderDesktopMessagesProxyDependencies { getSession: (event: H3Event) => Promise | null>; getOrgContext: (event: H3Event) => Promise<{ orgId: string | null; }>; resolveGatewayAuth: (identity: { userEmail: string; orgId: string | null; }) => Promise; getGatewayBaseUrl: () => string; getGatewayHeaders: () => Record; fetch: typeof globalThis.fetch; } /** * Anthropic Messages-compatible, session-authenticated streaming endpoint for * Desktop Code Agents. Builder credentials stay on the server and are resolved * in the signed-in user's active organization context. */ export declare function createBuilderDesktopMessagesHandler(overrides?: Partial): import("h3").EventHandlerWithFetch>;