import { ITelemetryService } from "../../telemetry/common/telemetry.service.js"; /** Source of an Integrated Browser open event. */ export type IntegratedBrowserOpenSource = /** Created as an unlisted backing view for a session canvas. */ "canvas" /** Created via CDP, such as by the agent using Playwright tools. */ | "cdpCreated" /** Opened via a (non-agentic) chat tool invocation. */ | "chatTool" /** Opened via the "Open Integrated Browser" command without a URL argument. * This typically means the user ran the command manually from the Command Palette. */ | "commandWithoutUrl" /** Opened via the "Open Integrated Browser" command with a URL argument. * This typically means another extension or component invoked the command programmatically. */ | "commandWithUrl" /** Opened via the quick open feature with no initial URL. */ | "quickOpenWithoutUrl" /** Opened via the quick open feature with an initial URL. */ | "quickOpenWithUrl" /** Opened via the "New Tab" command from an existing tab. */ | "newTabCommand" /** Opened via the localhost link opener when the `workbench.browser.openLocalhostLinks` setting * is enabled. This happens when clicking localhost (e.g., `localhost`, `127.0.0.1`, `[::1]`) or all-interfaces * links (e.g., `0.0.0.0`, `[::]`) from the terminal, chat, or other sources. */ | "localhostLinkOpener" /** Opened when clicking a link inside the Integrated Browser that opens in a new focused editor * (e.g., links with target="_blank"). */ | "browserLinkForeground" /** Opened when clicking a link inside the Integrated Browser that opens in a new background editor * (e.g., Ctrl/Cmd+click). */ | "browserLinkBackground" /** Opened when clicking a link inside the Integrated Browser that opens in a new window * (e.g., Shift+click). */ | "browserLinkNewWindow" /** Opened when the user copies a browser editor to a new window via "Copy into New Window". */ | "copyToNewWindow" /** Opened via the "Open in Integrated Browser" command for a local file. */ | "openFileCommand" /** Opened by resolving a local file resource to the Integrated Browser editor. */ | "fileResource"; export declare function logBrowserOpen(telemetryService: ITelemetryService, source: IntegratedBrowserOpenSource): void;