import "./node-require-shim.js"; import { type HttpListenOptions, type HttpServer, type HttpServerHandle, type HttpToolContext, type HttpTransportOptions, type TinyHttpMcpServerOAuthOptions } from "tiny-http-mcp-server/server"; import type { Group } from "./index.js"; import type { OAuthAuthorizationServer } from "mcp-oauth-server"; import { type RunMCPOptions } from "./mcp.js"; import { type HostedOAuthConfiguration } from "./http-hosted-oauth.js"; export type ToolcraftHTTPContext = HttpToolContext; export type ToolcraftHTTPServer = HttpServer; export type ToolcraftHTTPServerHandle = HttpServerHandle; type HTTPTransportControls = Omit; type HTTPListenControls = Omit; export interface RunHTTPMCPOptions> extends RunMCPOptions, HTTPTransportControls, HTTPListenControls { hostname?: string; port?: number; path?: string; requestServices?(context: ToolcraftHTTPContext): Partial | Promise>; oauth?: TinyHttpMcpServerOAuthOptions | HostedOAuthConfiguration; } export interface HTTPMCPAuthorizationOptions { authorizationServer: Pick; resource: string; requiredScopes?: readonly string[]; scopesSupported?: readonly string[]; } export declare function createHTTPMCPAuthorization(options: HTTPMCPAuthorizationOptions): import("tiny-http-mcp-server/server").TinyHttpMcpServerOAuthOptions; export declare function createHTTPMCPServer>(roots: Group | Group[], options: RunHTTPMCPOptions): Promise; export declare function runHTTPMCP>(roots: Group | Group[], options: RunHTTPMCPOptions): Promise; export type { HttpListenOptions, HttpObservabilityEvent, HttpObservabilityOptions, RequestAuthInfo, Session, SessionStore, StreamableHttpTransportOptions, TinyHttpMcpServerOAuthOptions, TokenVerifier, VerifiedAccessToken } from "tiny-http-mcp-server/server"; export { createJwksTokenVerifier, TokenVerificationError } from "tiny-http-mcp-server/server"; export { createAuthorizationInteractionSecurity, createInMemoryAuthorizationServerStore, createOAuthAuthorizationServer, verifyAuthorizationInteractionCsrf } from "mcp-oauth-server"; export type { AuthorizationInteraction, AuthorizationInteractionSecurity, AuthorizationServerStore, OAuthAuthorizationServer, OAuthAuthorizationServerOptions, VerifiedAuthorizationServerToken } from "mcp-oauth-server";