import { BrowserSessionId, BrowserSessionStateId } from "../types"; import { WebmateAPISession } from "../webmate-api-session"; import { BrowserSessionStateExtractionConfig } from "./browser-session-state-extraction-config"; import { Observable } from "rxjs"; import { BrowserSessionInfo } from "./browser-session-info"; export declare class BrowserSessionRef { readonly browserSessionId: BrowserSessionId; readonly session: WebmateAPISession; constructor(browserSessionId: BrowserSessionId, session: WebmateAPISession); /** * Creates a State for a Browsersession with a matching id using a custom config. * * @param matchingId The Id for the state. Used for matching. * @param browserSessionStateExtractionConfig The custom config that is supposed to be used. */ createState(matchingId: string, browserSessionStateExtractionConfig: BrowserSessionStateExtractionConfig): Observable; /** * Start custom action with given name. If there is another action already active, this action will be a * child action of that one. */ startAction(actionName: string): Observable; /** * Finish the currently active custom action successfully with message. */ finishAction(successMessage: string): Observable; /** * Finish the currently active custom action and mark as failed with the given message. */ finishActionAsFailure(errorMessage: string): Observable; /** * Terminates the BrowserSession. * * @return true if the BrowserSession was successfully terminated */ terminateSession(): Observable; /** * Retrieves the browser session info for this browser session. * * @return The browser session info for this browser session. */ getBrowserSessionInfo(): Observable; }