"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScreenshotCaptureSession = exports.wrapExpect = void 0;
exports.startLocatorScreenshotCapture = startLocatorScreenshotCapture;
const locator_patch_1 = require("./locator-patch");
const screenshot_capture_session_1 = require("./screenshot-capture-session");
function startLocatorScreenshotCapture(samplePage, outputDir, onScreenshotWritten, screenshotTimeoutMs) {
    (0, locator_patch_1.ensureLocatorPrototypePatched)(samplePage);
    const session = new screenshot_capture_session_1.ScreenshotCaptureSession(outputDir, onScreenshotWritten, screenshotTimeoutMs);
    (0, locator_patch_1.setActiveCaptureSession)(session);
    return () => (0, locator_patch_1.setActiveCaptureSession)(null);
}
var assertion_wrapper_1 = require("./assertion-wrapper");
Object.defineProperty(exports, "wrapExpect", { enumerable: true, get: function () { return assertion_wrapper_1.wrapExpect; } });
var screenshot_capture_session_2 = require("./screenshot-capture-session");
Object.defineProperty(exports, "ScreenshotCaptureSession", { enumerable: true, get: function () { return screenshot_capture_session_2.ScreenshotCaptureSession; } });
