/** * Photon Beam - Interactive Control Panel * * A unified UI to interact with all your photons. * Uses MCP Streamable HTTP (POST + SSE) for real-time communication. * Version: 2.0.0 (SSE Architecture) */ export interface BeamWebRouteDef { method: string; path: string; handler: string; format?: string; } export declare function beamWebRouteMatches(routePath: string, requestPath: string): boolean; export declare function shouldServeLinkedAppForWebPath(pathname: string, searchParams: URLSearchParams): boolean; export declare function shouldBypassBeamServiceWorkerNavigation(pathname: string): boolean; export declare function shouldHandleBeamServiceWorkerNavigation(pathname: string): boolean; export declare function selectClientAppUi(photonInfo: PhotonInfo | undefined): string | undefined; export declare function shouldFallbackToClientAppForWebPath(pathname: string, searchParams: URLSearchParams, route: BeamWebRouteDef | undefined): boolean; export declare function findBeamWebRoute(routes: BeamWebRouteDef[] | undefined, method: string, requestPath: string): BeamWebRouteDef | undefined; export declare function rewriteBeamWebRedirectLocation(location: string | null, prefix: string, requestOrigin: string): string | null; import type { PhotonInfo } from './types.js'; export type { PhotonConfig } from './beam/types.js'; export type { BeamState } from './beam/types.js'; type BeamState = import('./beam/types.js').BeamState; export declare function startBeam(rawWorkingDir: string, port: number): Promise; /** * Gracefully stop Beam server and clean up resources. * Closes all external MCP SDK clients to prevent ugly tracebacks on shutdown. */ export declare function stopBeam(): Promise; export declare function __stopBeamStateForTests(state: BeamState): Promise; //# sourceMappingURL=beam.d.ts.map