import { SemanticLayerCompiler } from '../../server/compiler.js'; import { HttpPort } from './http-port.js'; import { BaseSecurityContextThunk } from './security-context.js'; /** REST handlers keyed by endpoint; each closes over the shared semantic layer. */ export interface RestHandlers { handleMetaGet(port: HttpPort): TRes; handleSqlGet(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; handleSqlPost(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; handleDryRunGet(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; handleDryRunPost(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; handleBatchPost(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; handleExplainPost(port: HttpPort, getBaseSecurityContext: BaseSecurityContextThunk): Promise; } export declare function createRestHandlers(semanticLayer: SemanticLayerCompiler): RestHandlers;