import { z } from 'zod'; import { BrowserforcePlugin } from '../../plugin.js'; import { type PicklistValue } from './pages/picklist.js'; declare const picklistActionSchema: z.ZodObject<{ metadataType: z.ZodEnum<{ CustomField: "CustomField"; GlobalValueSet: "GlobalValueSet"; StandardValueSet: "StandardValueSet"; }>; metadataFullName: z.ZodString; value: z.ZodOptional; newValue: z.ZodOptional; statusCategory: z.ZodOptional; replaceAllBlankValues: z.ZodOptional; active: z.ZodOptional; absent: z.ZodOptional; newApiName: z.ZodOptional; newLabel: z.ZodOptional; }, z.core.$strip>; export declare const picklistsSchema: z.ZodObject<{ picklistValues: z.ZodDefault; metadataFullName: z.ZodString; value: z.ZodOptional; newValue: z.ZodOptional; statusCategory: z.ZodOptional; replaceAllBlankValues: z.ZodOptional; active: z.ZodOptional; absent: z.ZodOptional; newApiName: z.ZodOptional; newLabel: z.ZodOptional; }, z.core.$strip>>>; fieldDependencies: z.ZodOptional; dependentField: z.ZodOptional; controllingField: z.ZodOptional>; }, z.core.$strip>>>>; }, z.core.$strip>; export type PicklistsConfig = z.infer; export type PicklistValuesConfig = z.infer & { _newValueId?: string; }; export declare class Picklists extends BrowserforcePlugin { retrieve(definition: PicklistsConfig): Promise; diff(state: PicklistsConfig, definition: PicklistsConfig): Partial | undefined; apply(config: PicklistsConfig): Promise; private checkApiNamesCanChange; /** * Renames the API name (and the label) of a value on its edit page. Inactive values have no Edit link: they are * activated first, then deactivated again under their new API name, even when the rename fails. Each step reads * the values of the page again, so a retry resumes from the state of the org. */ private rename; } /** * The state of a rename action: `value` and `newApiName` only when the org has them, `newLabel` the current label. */ export declare function renameState(action: PicklistValuesConfig, values: PicklistValue[]): PicklistValuesConfig; /** * A rename is needed until the org has the new API name, and the new label when the config sets one. */ export declare function isRenameNeeded(source: PicklistValuesConfig | undefined, target: PicklistValuesConfig): boolean; export {};