import http from 'node:http'; import type { IncomingMessage, ServerResponse } from 'node:http'; import type { AgentGateway } from '@geometra/core'; import type { AgentGatewayReplayStore } from './replay-store.js'; export { FileAgentGatewayReplayStore, MemoryAgentGatewayReplayStore } from './replay-store.js'; export type { AgentGatewayReplayStore, FileAgentGatewayReplayStoreOptions } from './replay-store.js'; export { createAgentGatewayToolAdapter } from './tools.js'; export type { AgentGatewayTool, AgentGatewayToolAdapter, AgentGatewayToolCallResult, AgentGatewayToolName, } from './tools.js'; export type AgentGatewayHttpScope = 'read' | 'request' | 'approve' | 'admin'; export interface AgentGatewayHttpIdentity { tenantId: string; subject?: string; scopes?: AgentGatewayHttpScope[]; } export interface AgentGatewayHttpAuthOptions { apiKeys: Record; /** Header to read before falling back to Authorization: Bearer. Default: x-geometra-api-key. */ headerName?: string; } export interface AgentGatewayHttpOptions { gateway: AgentGateway; cors?: boolean; maxBodyBytes?: number; auth?: AgentGatewayHttpAuthOptions; replayStore?: AgentGatewayReplayStore; } export interface AgentGatewayHttpServerOptions extends AgentGatewayHttpOptions { host?: string; port?: number; } export interface AgentGatewayHttpServer { server: http.Server; url: string; close(): Promise; } export declare function createAgentGatewayHttpHandler(options: AgentGatewayHttpOptions): (req: IncomingMessage, res: ServerResponse) => Promise; export declare function createAgentGatewayHttpServer(options: AgentGatewayHttpServerOptions): Promise; //# sourceMappingURL=index.d.ts.map