/** * Script loader for webview injection scripts * * These scripts are loaded at build time and injected into the webview at runtime. * Each script is an IIFE that accepts a params object. */ export declare const SCRIPTS: { readonly resolveRef: string; readonly interact: string; readonly swipe: string; readonly keyboard: string; readonly waitFor: string; readonly getStyles: string; readonly focus: string; readonly findElement: string; readonly domSnapshot: string; readonly elementPicker: string; }; /** Script ID used for resolve-ref in the script registry. */ export declare const RESOLVE_REF_SCRIPT_ID = "__mcp_resolve_ref__"; /** * Get the resolve-ref script source code. */ export declare function getResolveRefSource(): string; /** * Build a script invocation with parameters * The script should be an IIFE that accepts a params object */ export declare function buildScript(script: string, params: Record): string; /** * Build a script for typing text (uses the keyboard script's typeText function) */ export declare function buildTypeScript(selector: string, text: string, strategy?: string): string; /** * Build a script for key events (press, down, up) */ export declare function buildKeyEventScript(action: string, key: string, modifiers?: string[]): string;