import type { Locator, Page } from '@playwright/test'; import { type AccessibilitySnapshot } from '@variance-authority/core/format'; import { type Acquired, type AcquireRequest } from './page-agent.js'; /** * Acquire semantic material and the browser-native accessibility roots together. * * `captured` runs the moment the page agent's document arrives, before the * accessibility roots are read: anything it reads is what held when the * document was taken, not what was said while the roots were still awaited. * * The pointer leaves the page first when the recipe holds `no-hover`, on every * acquisition, because a test or the in-place path may move it between two. * The clock and the motion preference have to be set before the page loads, * which is before this helper is called: `request.driven` names the ones the * `variance` fixture set, and this adds the pointer to them. */ export declare function acquireFrom(page: Page, locator: Locator, request: AcquireRequest, captured?: () => void): Promise; /** * Start the page agent recording changes to the subject, for the next * `acquireFrom` to report as `mutated`. * * A separate call from the read before it leaves no gap a screenshot can fall * into: a state photographed after this call and gone by the next read was left * after this call, and leaving it is a change the watch records. */ export declare function watchFrom(locator: Locator): Promise; /** Stop a watch `acquireFrom` did not take, on a page that is still open. */ export declare function unwatchFrom(page: Page): Promise; /** * Give focus back to what every acquisition since the last call took it from, * once the observation is done with the page. See the page agent's `refocus`. */ export declare function refocusAfter(page: Page): Promise; //# sourceMappingURL=acquire.d.ts.map