/**
 * Returns a URLPattern given an origin pattern string that has the syntax:
 * <protocol>://<hostname>[:<port>]
 * where <protocol>, <hostname> and <port> are inserted into URLPattern.
 */
export declare function matcherForOrigin(originPattern: string): URLPattern | null;
export declare function urlMatchesApiAllowedOrigin(url: URL): boolean;
/**
 * A bridge class that manages the postMessage handshake and communication
 * between the Chrome WebUI host and the guest Webview application.
 */
export declare class SkillsWebviewBridge {
    private webview_;
    private targetOrigin_;
    private handshakeIntervalId_;
    private timeoutId_;
    private isConnected_;
    private eventTracker_;
    private onErrorCallback_;
    constructor(webview: chrome.webviewTag.WebView, onError: () => void);
    private onLoadCommit;
    private urlRequiresHandshake;
    private onLoadStop;
    private startHandshake;
    private sendPing;
    private stopHandshake;
    private onMessage;
    destroy(): void;
    isConnected(): boolean;
}
