import { z } from 'zod'; import { BrowserforcePlugin } from '../../plugin.js'; export declare const userAccessPoliciesSchema: z.ZodObject<{ accessPolicies: z.ZodDefault; on: z.ZodOptional>; applyToAll: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; export type UserAccessPoliciesConfig = z.infer; export declare class UserAccessPolicies extends BrowserforcePlugin { retrieve(definition?: UserAccessPoliciesConfig): Promise; /** * Compares only what each policy asks for: * - its status (active, on) only when active is set, * - Apply To All every time it is true: Salesforce keeps no state that tells it already ran. * false never produces a change: a run cannot be undone. * @returns undefined when there is no change */ diff(state: UserAccessPoliciesConfig | undefined, definition: UserAccessPoliciesConfig | undefined): UserAccessPoliciesConfig | undefined; apply(config: UserAccessPoliciesConfig): Promise; private queryPolicies; private retrievePolicy; private needsStatusChange; private applyPolicyChange; private needsPolicyChange; private isValidTriggerType; /** * Clicks Apply To All, then waits until Salesforce records the run in UserAccessChange. * A policy that matches no user records nothing, so a missing row only gives a warning. */ private applyToAllUsers; private clickApplyToAll; /** * @returns the CreatedDate of the latest UserAccessChange row of the policy, or null when there is none */ private queryLastApplyToAllDate; private warnUnconfirmedApplyToAll; }