// Generated by scripts/generate-plugin-sdk-facades.mjs. Do not edit manually.
import type { PluginSdkFacadeTypeMap } from "../generated/plugin-sdk-facade-type-map.generated.js";
type FacadeEntry = PluginSdkFacadeTypeMap["browser-runtime"];
type FacadeModule = FacadeEntry["module"];
export {
  DEFAULT_AI_SNAPSHOT_MAX_CHARS,
  DEFAULT_BROWSER_EVALUATE_ENABLED,
  DEFAULT_OPENCLAW_BROWSER_COLOR,
  DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME,
  DEFAULT_UPLOAD_DIR,
  redactCdpUrl,
  resolveBrowserConfig,
  resolveBrowserControlAuth,
  resolveProfile,
} from "./browser-config.js";
export {
  parseBrowserMajorVersion,
  readBrowserVersion,
  resolveGoogleChromeExecutableForPlatform,
} from "./browser-host-inspection.js";
export { closeTrackedBrowserTabsForSessions, movePathToTrash } from "./browser-maintenance.js";
import {
  createLazyFacadeObjectValue,
  loadActivatedBundledPluginPublicSurfaceModuleSync,
} from "./facade-runtime.js";

function loadFacadeModule(): FacadeModule {
  return loadActivatedBundledPluginPublicSurfaceModuleSync<FacadeModule>({
    dirName: "browser",
    artifactBasename: "runtime-api.js",
  });
}
export const applyBrowserProxyPaths: FacadeModule["applyBrowserProxyPaths"] = ((...args) =>
  loadFacadeModule()["applyBrowserProxyPaths"](...args)) as FacadeModule["applyBrowserProxyPaths"];
export const browserAct: FacadeModule["browserAct"] = ((...args) =>
  loadFacadeModule()["browserAct"](...args)) as FacadeModule["browserAct"];
export const browserArmDialog: FacadeModule["browserArmDialog"] = ((...args) =>
  loadFacadeModule()["browserArmDialog"](...args)) as FacadeModule["browserArmDialog"];
export const browserArmFileChooser: FacadeModule["browserArmFileChooser"] = ((...args) =>
  loadFacadeModule()["browserArmFileChooser"](...args)) as FacadeModule["browserArmFileChooser"];
export const browserCloseTab: FacadeModule["browserCloseTab"] = ((...args) =>
  loadFacadeModule()["browserCloseTab"](...args)) as FacadeModule["browserCloseTab"];
export const browserConsoleMessages: FacadeModule["browserConsoleMessages"] = ((...args) =>
  loadFacadeModule()["browserConsoleMessages"](...args)) as FacadeModule["browserConsoleMessages"];
export const browserCreateProfile: FacadeModule["browserCreateProfile"] = ((...args) =>
  loadFacadeModule()["browserCreateProfile"](...args)) as FacadeModule["browserCreateProfile"];
export const browserDeleteProfile: FacadeModule["browserDeleteProfile"] = ((...args) =>
  loadFacadeModule()["browserDeleteProfile"](...args)) as FacadeModule["browserDeleteProfile"];
export const browserFocusTab: FacadeModule["browserFocusTab"] = ((...args) =>
  loadFacadeModule()["browserFocusTab"](...args)) as FacadeModule["browserFocusTab"];
export const browserHandlers: FacadeModule["browserHandlers"] = createLazyFacadeObjectValue(
  () => loadFacadeModule()["browserHandlers"] as object,
) as FacadeModule["browserHandlers"];
export const browserNavigate: FacadeModule["browserNavigate"] = ((...args) =>
  loadFacadeModule()["browserNavigate"](...args)) as FacadeModule["browserNavigate"];
export const browserOpenTab: FacadeModule["browserOpenTab"] = ((...args) =>
  loadFacadeModule()["browserOpenTab"](...args)) as FacadeModule["browserOpenTab"];
export const browserPdfSave: FacadeModule["browserPdfSave"] = ((...args) =>
  loadFacadeModule()["browserPdfSave"](...args)) as FacadeModule["browserPdfSave"];
export const browserProfiles: FacadeModule["browserProfiles"] = ((...args) =>
  loadFacadeModule()["browserProfiles"](...args)) as FacadeModule["browserProfiles"];
export const browserResetProfile: FacadeModule["browserResetProfile"] = ((...args) =>
  loadFacadeModule()["browserResetProfile"](...args)) as FacadeModule["browserResetProfile"];
export const browserScreenshotAction: FacadeModule["browserScreenshotAction"] = ((...args) =>
  loadFacadeModule()["browserScreenshotAction"](
    ...args,
  )) as FacadeModule["browserScreenshotAction"];
export const browserSnapshot: FacadeModule["browserSnapshot"] = ((...args) =>
  loadFacadeModule()["browserSnapshot"](...args)) as FacadeModule["browserSnapshot"];
export const browserStart: FacadeModule["browserStart"] = ((...args) =>
  loadFacadeModule()["browserStart"](...args)) as FacadeModule["browserStart"];
export const browserStatus: FacadeModule["browserStatus"] = ((...args) =>
  loadFacadeModule()["browserStatus"](...args)) as FacadeModule["browserStatus"];
export const browserStop: FacadeModule["browserStop"] = ((...args) =>
  loadFacadeModule()["browserStop"](...args)) as FacadeModule["browserStop"];
export const browserTabAction: FacadeModule["browserTabAction"] = ((...args) =>
  loadFacadeModule()["browserTabAction"](...args)) as FacadeModule["browserTabAction"];
export const browserTabs: FacadeModule["browserTabs"] = ((...args) =>
  loadFacadeModule()["browserTabs"](...args)) as FacadeModule["browserTabs"];
export const createBrowserControlContext: FacadeModule["createBrowserControlContext"] = ((
  ...args
) =>
  loadFacadeModule()["createBrowserControlContext"](
    ...args,
  )) as FacadeModule["createBrowserControlContext"];
export const createBrowserPluginService: FacadeModule["createBrowserPluginService"] = ((...args) =>
  loadFacadeModule()["createBrowserPluginService"](
    ...args,
  )) as FacadeModule["createBrowserPluginService"];
export const createBrowserRouteContext: FacadeModule["createBrowserRouteContext"] = ((...args) =>
  loadFacadeModule()["createBrowserRouteContext"](
    ...args,
  )) as FacadeModule["createBrowserRouteContext"];
export const createBrowserRouteDispatcher: FacadeModule["createBrowserRouteDispatcher"] = ((
  ...args
) =>
  loadFacadeModule()["createBrowserRouteDispatcher"](
    ...args,
  )) as FacadeModule["createBrowserRouteDispatcher"];
export const createBrowserRuntimeState: FacadeModule["createBrowserRuntimeState"] = ((...args) =>
  loadFacadeModule()["createBrowserRuntimeState"](
    ...args,
  )) as FacadeModule["createBrowserRuntimeState"];
export const createBrowserTool: FacadeModule["createBrowserTool"] = ((...args) =>
  loadFacadeModule()["createBrowserTool"](...args)) as FacadeModule["createBrowserTool"];
export const definePluginEntry: FacadeModule["definePluginEntry"] = ((...args) =>
  loadFacadeModule()["definePluginEntry"](...args)) as FacadeModule["definePluginEntry"];
export const ensureBrowserControlAuth: FacadeModule["ensureBrowserControlAuth"] = ((...args) =>
  loadFacadeModule()["ensureBrowserControlAuth"](
    ...args,
  )) as FacadeModule["ensureBrowserControlAuth"];
export const getBrowserControlState: FacadeModule["getBrowserControlState"] = ((...args) =>
  loadFacadeModule()["getBrowserControlState"](...args)) as FacadeModule["getBrowserControlState"];
export const getBrowserProfileCapabilities: FacadeModule["getBrowserProfileCapabilities"] = ((
  ...args
) =>
  loadFacadeModule()["getBrowserProfileCapabilities"](
    ...args,
  )) as FacadeModule["getBrowserProfileCapabilities"];
export const handleBrowserGatewayRequest: FacadeModule["handleBrowserGatewayRequest"] = ((
  ...args
) =>
  loadFacadeModule()["handleBrowserGatewayRequest"](
    ...args,
  )) as FacadeModule["handleBrowserGatewayRequest"];
export const installBrowserAuthMiddleware: FacadeModule["installBrowserAuthMiddleware"] = ((
  ...args
) =>
  loadFacadeModule()["installBrowserAuthMiddleware"](
    ...args,
  )) as FacadeModule["installBrowserAuthMiddleware"];
export const installBrowserCommonMiddleware: FacadeModule["installBrowserCommonMiddleware"] = ((
  ...args
) =>
  loadFacadeModule()["installBrowserCommonMiddleware"](
    ...args,
  )) as FacadeModule["installBrowserCommonMiddleware"];
export const isPersistentBrowserProfileMutation: FacadeModule["isPersistentBrowserProfileMutation"] =
  ((...args) =>
    loadFacadeModule()["isPersistentBrowserProfileMutation"](
      ...args,
    )) as FacadeModule["isPersistentBrowserProfileMutation"];
export const normalizeBrowserFormField: FacadeModule["normalizeBrowserFormField"] = ((...args) =>
  loadFacadeModule()["normalizeBrowserFormField"](
    ...args,
  )) as FacadeModule["normalizeBrowserFormField"];
export const normalizeBrowserFormFieldValue: FacadeModule["normalizeBrowserFormFieldValue"] = ((
  ...args
) =>
  loadFacadeModule()["normalizeBrowserFormFieldValue"](
    ...args,
  )) as FacadeModule["normalizeBrowserFormFieldValue"];
export const normalizeBrowserRequestPath: FacadeModule["normalizeBrowserRequestPath"] = ((
  ...args
) =>
  loadFacadeModule()["normalizeBrowserRequestPath"](
    ...args,
  )) as FacadeModule["normalizeBrowserRequestPath"];
export const persistBrowserProxyFiles: FacadeModule["persistBrowserProxyFiles"] = ((...args) =>
  loadFacadeModule()["persistBrowserProxyFiles"](
    ...args,
  )) as FacadeModule["persistBrowserProxyFiles"];
export const registerBrowserCli: FacadeModule["registerBrowserCli"] = ((...args) =>
  loadFacadeModule()["registerBrowserCli"](...args)) as FacadeModule["registerBrowserCli"];
export const registerBrowserRoutes: FacadeModule["registerBrowserRoutes"] = ((...args) =>
  loadFacadeModule()["registerBrowserRoutes"](...args)) as FacadeModule["registerBrowserRoutes"];
export const resolveExistingPathsWithinRoot: FacadeModule["resolveExistingPathsWithinRoot"] = ((
  ...args
) =>
  loadFacadeModule()["resolveExistingPathsWithinRoot"](
    ...args,
  )) as FacadeModule["resolveExistingPathsWithinRoot"];
export const resolveRequestedBrowserProfile: FacadeModule["resolveRequestedBrowserProfile"] = ((
  ...args
) =>
  loadFacadeModule()["resolveRequestedBrowserProfile"](
    ...args,
  )) as FacadeModule["resolveRequestedBrowserProfile"];
export const runBrowserProxyCommand: FacadeModule["runBrowserProxyCommand"] = ((...args) =>
  loadFacadeModule()["runBrowserProxyCommand"](...args)) as FacadeModule["runBrowserProxyCommand"];
export const startBrowserBridgeServer: FacadeModule["startBrowserBridgeServer"] = ((...args) =>
  loadFacadeModule()["startBrowserBridgeServer"](
    ...args,
  )) as FacadeModule["startBrowserBridgeServer"];
export const startBrowserControlServiceFromConfig: FacadeModule["startBrowserControlServiceFromConfig"] =
  ((...args) =>
    loadFacadeModule()["startBrowserControlServiceFromConfig"](
      ...args,
    )) as FacadeModule["startBrowserControlServiceFromConfig"];
export const stopBrowserBridgeServer: FacadeModule["stopBrowserBridgeServer"] = ((...args) =>
  loadFacadeModule()["stopBrowserBridgeServer"](
    ...args,
  )) as FacadeModule["stopBrowserBridgeServer"];
export const stopBrowserControlService: FacadeModule["stopBrowserControlService"] = ((...args) =>
  loadFacadeModule()["stopBrowserControlService"](
    ...args,
  )) as FacadeModule["stopBrowserControlService"];
export const stopBrowserRuntime: FacadeModule["stopBrowserRuntime"] = ((...args) =>
  loadFacadeModule()["stopBrowserRuntime"](...args)) as FacadeModule["stopBrowserRuntime"];
export const trackSessionBrowserTab: FacadeModule["trackSessionBrowserTab"] = ((...args) =>
  loadFacadeModule()["trackSessionBrowserTab"](...args)) as FacadeModule["trackSessionBrowserTab"];
export const untrackSessionBrowserTab: FacadeModule["untrackSessionBrowserTab"] = ((...args) =>
  loadFacadeModule()["untrackSessionBrowserTab"](
    ...args,
  )) as FacadeModule["untrackSessionBrowserTab"];
export type BrowserBridge = FacadeEntry["types"]["BrowserBridge"];
export type BrowserCreateProfileResult = FacadeEntry["types"]["BrowserCreateProfileResult"];
export type BrowserDeleteProfileResult = FacadeEntry["types"]["BrowserDeleteProfileResult"];
export type BrowserExecutable = FacadeEntry["types"]["BrowserExecutable"];
export type BrowserFormField = FacadeEntry["types"]["BrowserFormField"];
export type BrowserResetProfileResult = FacadeEntry["types"]["BrowserResetProfileResult"];
export type BrowserRouteRegistrar = FacadeEntry["types"]["BrowserRouteRegistrar"];
export type BrowserServerState = FacadeEntry["types"]["BrowserServerState"];
export type BrowserStatus = FacadeEntry["types"]["BrowserStatus"];
export type BrowserTab = FacadeEntry["types"]["BrowserTab"];
export type BrowserTransport = FacadeEntry["types"]["BrowserTransport"];
export type OpenClawPluginApi = FacadeEntry["types"]["OpenClawPluginApi"];
export type OpenClawPluginToolContext = FacadeEntry["types"]["OpenClawPluginToolContext"];
export type OpenClawPluginToolFactory = FacadeEntry["types"]["OpenClawPluginToolFactory"];
export type ProfileStatus = FacadeEntry["types"]["ProfileStatus"];
export type ResolvedBrowserConfig = FacadeEntry["types"]["ResolvedBrowserConfig"];
export type ResolvedBrowserProfile = FacadeEntry["types"]["ResolvedBrowserProfile"];
export type SnapshotResult = FacadeEntry["types"]["SnapshotResult"];
