import * as z from "zod"; import type { QuickAction } from "./QuickActionsBar.types"; /** * User choices for the Acesso Rápido shortcuts. * * `order` and `hidden` hold shortcut ids and may include ids that the current * profile does not offer (e.g. Médiuns on the personal profile); those are kept * so switching profiles does not lose the choice. */ export declare const QuickActionPreferencesSchema: z.ZodObject<{ order: z.ZodArray; hidden: z.ZodArray; }, "strip", z.ZodTypeAny, { hidden: string[]; order: string[]; }, { hidden: string[]; order: string[]; }>; export type QuickActionPreferences = z.infer; export declare const QuickActionPreferencesChangeMetaSchema: z.ZodObject<{ method: z.ZodEnum<["arrow_up", "arrow_down", "visibility", "reset"]>; actionId: z.ZodOptional; visible: z.ZodOptional; }, "strip", z.ZodTypeAny, { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; }, { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; }>; export type QuickActionPreferencesChangeMeta = z.infer; export declare const EMPTY_QUICK_ACTION_PREFERENCES: QuickActionPreferences; export type QuickActionMenuItem = QuickAction & { visible: boolean; }; /** * Orders `actions` by the stored ids. Shortcuts missing from the stored order * are placed right after the shortcut that precedes them in the default list. */ export declare const orderQuickActions: (actions: T[], order: string[] | undefined) => T[]; /** Ordered shortcuts with their visibility, for the customization list. */ export declare const getQuickActionMenuItems: (actions: QuickAction[], preferences: QuickActionPreferences | undefined) => QuickActionMenuItem[]; /** Shortcuts shown in the Acesso Rápido bar. */ export declare const getVisibleQuickActions: (actions: QuickAction[], preferences: QuickActionPreferences | undefined) => QuickAction[]; export declare const moveQuickActionPreference: (actions: QuickAction[], preferences: QuickActionPreferences | undefined, id: string, direction: "up" | "down") => QuickActionPreferences; /** * Shows or hides `id`, saving this profile's shortcuts as they currently * appear so the stored `hidden` list matches what the user sees. */ export declare const setQuickActionVisibilityPreference: (actions: QuickAction[], preferences: QuickActionPreferences | undefined, id: string, visible: boolean) => QuickActionPreferences; /** True when the profile's shortcuts show in default order with none hidden. */ export declare const isDefaultQuickActionPreferences: (actions: QuickAction[], preferences: QuickActionPreferences | undefined) => boolean;