/**
 * Minimal shape of the OS process spawned for a Playwright browser.
 */
interface BrowserChildProcessLike {
    pid?: number;
    killed?: boolean;
    kill?: (signal?: NodeJS.Signals) => boolean;
}
/**
 * Reaches the OS process backing a Playwright browser handle.
 *
 * Playwright's public client API exposes no process handle, but the `playwright`
 * package runs its server side in the same Node process, so the client
 * connection can map a client object back to its server implementation
 * (`toImpl`) — and that implementation owns the spawned browser process.
 * Undefined for remote browsers (`connect`), where no local process exists.
 * @param browser The Playwright client `Browser` instance.
 */
export declare function getPlaywrightBrowserProcess(browser: unknown): BrowserChildProcessLike | undefined;
/**
 * Force-kills the browser process behind a Playwright browser handle.
 *
 * Last resort for a browser whose graceful `close()` is stuck: without it a
 * long-lived dev server would strand one headless browser per timed-out run.
 * Never throws and is idempotent per browser handle.
 * @param browser The Playwright client `Browser` instance.
 * @param capturedProcess Owned process captured before graceful close removed it.
 * @returns Whether a process was actually signalled.
 */
export declare function forceKillPlaywrightBrowser(browser: unknown, capturedProcess?: BrowserChildProcessLike): boolean;
export {};
//# sourceMappingURL=playwright-kill.d.ts.map