import { AbsWebView } from 'scriptable-abstract'; interface WebViewState { url?: string; html?: string; baseURL?: string; shouldAllowRequest: (request: Request) => boolean; } declare class MockWebView extends AbsWebView { constructor(); /** * Loads HTML and renders it. */ static loadHTML(html: string, baseURL?: string, _preferredSize?: Size, fullscreen?: boolean): Promise; /** * Loads a file and renders it. */ static loadFile(fileURL: string, _preferredSize?: Size, fullscreen?: boolean): Promise; /** * Loads URL in web view and presents the web view. */ static loadURL(url: string, _preferredSize?: Size, fullscreen?: boolean): Promise; get shouldAllowRequest(): (request: Request) => boolean; set shouldAllowRequest(value: (request: Request) => boolean); loadURL(url: string): Promise; loadHTML(html: string, baseURL?: string): Promise; loadRequest(request: Request): Promise; loadFile(path: string): Promise; evaluateJavaScript(_javaScript: string, _useCallback?: boolean): Promise; getHTML(): Promise; getURL(): Promise; present(_fullscreen?: boolean): Promise; waitForLoad(): Promise; } export { MockWebView };