/**
 * WASM Plugin HTTP Route Handlers
 *
 * Handles HTTP route registration and request handling for WASM plugins.
 * Includes custom endpoint routing, log streaming, and basic REST API endpoints.
 */
import { Request, Response } from 'express';
import { WasmPlugin } from './types';
/**
 * Helper to support both prefixed and non-prefixed routes
 */
export declare function backwardsCompat(url: string): string[];
/**
 * Handle /api/logs request directly in Node.js (for signalk-logviewer plugin)
 * This avoids WASM memory buffer limitations (~64KB) when streaming large logs
 */
export declare function handleLogViewerRequest(req: Request, res: Response): Promise<void>;
/**
 * Add plugin-specific HTTP endpoints to an existing router
 * This is called when enabling a previously disabled plugin
 */
export declare function setupPluginSpecificRoutes(plugin: WasmPlugin): void;
/**
 * Set up REST API routes for a WASM plugin
 */
export declare function setupWasmPluginRoutes(app: any, plugin: WasmPlugin, configPath: string, updateWasmPluginConfig: (app: any, pluginId: string, configuration: any, configPath: string) => Promise<void>, startWasmPlugin: (app: any, pluginId: string) => Promise<void>, unloadWasmPlugin: (app: any, pluginId: string) => Promise<void>, stopWasmPlugin: (pluginId: string) => Promise<void>): void;
//# sourceMappingURL=plugin-routes.d.ts.map