/**
 * Inspector Handler
 *
 * Provides a debug endpoint for starting the Node.js inspector at runtime.
 * When a POST request is made to /__debug/inspector, this handler:
 * 1. Opens the Node.js inspector on a random port
 * 2. Fetches inspector metadata from http://127.0.0.1:[PORT]/json/list
 * 3. Returns the DevTools frontend URL, inspector port, and process PID
 *
 * This allows developers to attach debuggers (Chrome DevTools, VSCode) to
 * running bot processes for debugging with full source map support.
 */
export interface InspectorResponse {
    inspectorUrl: string | null;
    inspectorPort: number | null;
    webSocketDebuggerUrl: string | null;
    devtoolsFrontendUrl: string | null;
    pid: number;
}
/**
 * Checks if the inspector is currently active.
 *
 * @returns True if inspector is open, false otherwise
 */
export declare function isInspectorActive(): Promise<boolean>;
/**
 * Closes the Node.js inspector if it's currently open.
 *
 * @returns HTTP response indicating success or failure
 */
export declare function handleInspectorDisable(): Promise<{
    statusCode: number;
    headers: Record<string, string>;
    body: string;
}>;
/**
 * Handles the inspector debug request.
 * Just returns the PID without starting the inspector.
 * This allows VSCode to attach and start the inspector itself.
 *
 * @returns HTTP response with PID information
 */
export declare function handleInspectorRequest(): Promise<{
    statusCode: number;
    headers: Record<string, string>;
    body: string;
}>;
/**
 * Handles Chrome DevTools open request.
 * Starts the inspector if not already started and returns the DevTools URL.
 *
 * @returns HTTP response with inspector connection information
 */
export declare function handleInspectorChrome(): Promise<{
    statusCode: number;
    headers: Record<string, string>;
    body: string;
}>;
//# sourceMappingURL=inspector-handler.d.ts.map