import type { Page } from 'playwright'; import type { SalesforceUrlPath } from '../../browserforce.js'; export declare class UserAccessPoliciesPage { private page; constructor(page: Page); static getPolicyUrl(policyId: string): SalesforceUrlPath; /** * Classic page listing the users of a policy, with its Apply To All button */ static getApplyToAllUrl(policyId: string): SalesforceUrlPath; /** * Click Apply To All on the page of getApplyToAllUrl() */ applyToAll(): Promise; /** * Activate a policy from its detail page * @param triggerOn - When to trigger the policy: 'Create', 'Update', or 'CreateAndUpdate' (default) */ activatePolicy(triggerOn?: 'Create' | 'Update' | 'CreateAndUpdate'): Promise; /** * Deactivate a policy from its detail page */ deactivatePolicy(): Promise; /** * Handle the activation modal (select trigger option and click Activate) */ private handleActivationModal; /** * Handle confirmation modal that may appear after deactivation */ private handleConfirmationModal; /** * Wait for a button to become enabled * @param button - The button locator to wait for * @param timeout - Maximum time to wait in milliseconds (default: 10000) */ private waitForButtonEnabled; }