import type { Config } from '../actions/collectPageActivity'; import type { OnBeforeScreenshotCallback, OnSwitchThemeCallback, ScreenshotOptions, Theme } from '../actions/matchScreenshot'; /** * Global settings for commands */ export declare const globalSettings: { /** * actions/assertElementsHidden */ assertElementsHidden: { defaultWaitForVisibleTimeout: number; }; /** * actions/matchScreenshot */ matchScreenshot: { /** * Screenshot creation and comparison parameters. * Will be merged with those passed during the call. */ options: ScreenshotOptions; /** * CSS selectors (pure CSS) of elements to hide. * Will be merged with those passed in the call. */ hideBySelector: string[] | undefined; /** * Pause before screenshot (ms) */ pause: number; /** * Use soft assertion */ soft: boolean; /** * Default screenshot name */ name: string | undefined; /** * Should I add a slug to the screenshot file name? */ shouldPrependSlugToName: boolean; /** * Topics that require a screenshot * By default, screenshots are taken for the current theme. Switching does not occur */ themes: Theme[] | undefined; /** * Callback before taking a screenshot. Useful for any special stabilizing actions * @param page Page Current page */ onBeforeScreenshot: OnBeforeScreenshotCallback | undefined; /** * Callback to switch theme to pages before taking screenshot * By default, switches the theme using `page.emulateMedia({ colorScheme: theme });` * @param theme Theme The theme for which the screenshot will be taken * @param page Page Current page */ onSwitchTheme: undefined | OnSwitchThemeCallback; }; /** * utils/waitForResolve */ waitForResolve: { /** * Interval between checks (ms) */ interval: number; /** * Timeout after which checks are aborted (ms) * `0` — without timeout */ timeout: number; }; collectPageActivity: Pick, "ignoredMessageTypes" | "expectedMessages" | "ignoredResponseStatuses" | "expectedResponses" | "requestIdHeader">; waitForNetworkSettled: { /** Timeout time after request */ delay: number; }; }; type GlobalSettingsType = typeof globalSettings; export interface GlobalSettings extends GlobalSettingsType { } export type PartialGlobalSettings = { [Key in keyof GlobalSettings]?: Partial; }; export {};