import { type Browser, type Page } from "playwright";
import { type ChildProcess } from "child_process";
/**
 * Check if Lightpanda browser is installed (optional dependency).
 */
export declare function isLightpandaAvailable(): boolean;
/**
 * Start Lightpanda as a CDP server on a random available port.
 * Returns the WebSocket endpoint URL.
 */
export declare function startLightpandaServer(port?: number): Promise<{
    process: ChildProcess;
    wsEndpoint: string;
}>;
/**
 * Launch a Lightpanda browser via CDP and return a Playwright Browser instance.
 */
export declare function launchLightpanda(_options?: {
    viewport?: {
        width: number;
        height: number;
    };
}): Promise<Browser>;
/**
 * Create a page from a Lightpanda-connected browser.
 */
export declare function getLightpandaPage(browser: Browser, options?: {
    viewport?: {
        width: number;
        height: number;
    };
    userAgent?: string;
    locale?: string;
}): Promise<Page>;
/**
 * Close a Lightpanda browser and kill the server process.
 */
export declare function closeLightpanda(browser: Browser): Promise<void>;
/**
 * Install Lightpanda browser.
 */
export declare function installLightpanda(): Promise<void>;
//# sourceMappingURL=browser-lightpanda.d.ts.map