@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 681 B
TypeScript
import type { Server } from "node:http";
import type { ResolvedBrowserConfig } from "./config.js";
import { type BrowserServerState, type ProfileContext } from "./server-context.js";
export type BrowserBridge = {
server: Server;
port: number;
baseUrl: string;
state: BrowserServerState;
};
export declare function startBrowserBridgeServer(params: {
resolved: ResolvedBrowserConfig;
host?: string;
port?: number;
authToken?: string;
authPassword?: string;
onEnsureAttachTarget?: (profile: ProfileContext["profile"]) => Promise<void>;
}): Promise<BrowserBridge>;
export declare function stopBrowserBridgeServer(server: Server): Promise<void>;