import { Locator } from "@playwright/test"; import { SetupAdapter, BaseGameAdapter } from "./base.js"; import { FoundryPage } from "../types/index.js"; /** * Setup adapter for Foundry VTT Version 12. * * This holds the full Application V1 setup-screen implementation: the * baseline behavior for the UI generation V12 introduced, which V13 mostly * kept unchanged (V14SetupAdapter is the real rewrite, onto ApplicationV2). * V13SetupAdapter extends this and overrides only the couple of places it * actually diverges - see its class doc. Newer/older sibling generations * (V11 and earlier, if ever supported) should extend from whichever * adapter's behavior they actually share, not necessarily this one. */ export declare class V12SetupAdapter implements SetupAdapter { version: number; constructor(page?: FoundryPage); login(page: FoundryPage, userName: string, password?: string): Promise; /** * The id of a setup-screen tab's content section, e.g. "systems" on V12 * itself (bare, no prefix) - confirmed live against * ghcr.io/felddy/foundryvtt:12.343.0. V13 prefixed these * ("setup-packages-systems") - overridden in V13SetupAdapter. */ protected packagesSectionId(dataTab: string): string; /** * The package-name filter input inside an install-package dialog. V12's * `input[name="filter"]` has no accessible name at all (no aria-label, no * associated label text) - confirmed live against * ghcr.io/felddy/foundryvtt:12.343.0. V13 gave the same input an * accessible name of "Filter" - overridden in V13SetupAdapter to use * role/name there instead of targeting the input directly. */ protected filterBoxLocator(dialog: Locator): Locator; switchTab(page: FoundryPage, tabName: string): Promise; handleEULA(page: FoundryPage): Promise; handleLicenseActivation(page: FoundryPage, licenseKey?: string): Promise; installSystem(page: FoundryPage, systemId: string, _systemLabel: string): Promise; installModules(page: FoundryPage, moduleIds: string[]): Promise; installSystemFromManifest(page: FoundryPage, manifestUrl: string): Promise; installModuleFromManifest(page: FoundryPage, manifestUrl: string): Promise; openSystemInstallDialog(page: FoundryPage): Promise; openModuleInstallDialog(page: FoundryPage): Promise; createWorld(page: FoundryPage, worldId: string, systemLabel: string, systemId: string): Promise; launchWorld(page: FoundryPage, worldId: string): Promise; createWorldBackup(_page: FoundryPage, _worldId: string, _backupName: string): Promise; restoreWorldBackup(_page: FoundryPage, _worldId: string, _backupName: string): Promise; listWorldBackups(_page: FoundryPage, _worldId: string): Promise; deleteWorldBackup(_page: FoundryPage, _worldId: string, _backupName: string): Promise; deleteWorldIfExists(page: FoundryPage, worldId: string): Promise; private waitForInstallation; private dismissAnalyticsDialog; } /** * Game adapter for Foundry VTT Version 12. */ export declare class V12GameAdapter extends BaseGameAdapter { version: number; constructor(page?: FoundryPage); }