import { IncomingMessage, ServerResponse } from 'http';
import type { WebSocket } from 'ws';
export interface ApiRouteContext {
    clients?: Set<WebSocket>;
    mode: 'development' | 'production';
}
export declare function handleWorkspaceFilePreviewPage(req: IncomingMessage, res: ServerResponse, pathname: string): Promise<boolean>;
/**
 * Handle API routes
 */
export declare function handleApiRoute(req: IncomingMessage, res: ServerResponse, pathname: string, context: ApiRouteContext): Promise<boolean>;
