import { ChildProcess } from 'child_process'; import type { ProxyMode, RecordingOptions, PlaybackOptions, Inventory } from './types'; /** * Represents a running proxy instance */ export declare class Proxy { readonly mode: ProxyMode; readonly inventoryDir: string; readonly entryUrl?: string; readonly deviceType?: string; private _port; private process?; constructor(mode: ProxyMode, port: number, inventoryDir: string, entryUrl?: string, deviceType?: string); /** * Get the actual port number */ get port(): number; /** * Set the child process */ setProcess(proc: ChildProcess): void; /** * Stop the proxy gracefully * Sends SIGTERM signal (cross-platform) */ stop(): Promise; /** * Check if the proxy is still running */ isRunning(): boolean; /** * Wait for the proxy to exit */ wait(): Promise; /** * Load the inventory for this proxy */ getInventory(): Promise; } /** * Start a recording proxy */ export declare function startRecording(options: RecordingOptions): Promise; /** * Start a playback proxy */ export declare function startPlayback(options: PlaybackOptions): Promise; /** * Load an inventory from a JSON file */ export declare function loadInventory(inventoryPath: string): Promise; /** * Save an inventory to a JSON file */ export declare function saveInventory(inventoryPath: string, inventory: Inventory): Promise; /** * Get the full path to a resource's content file */ export declare function getResourceContentPath(inventoryDir: string, resource: { contentFilePath?: string; }): string; /** * Get the path to the index.json file */ export declare function getInventoryPath(inventoryDir: string): string; //# sourceMappingURL=proxy.d.ts.map