export type AccountAction = "manageUsers"; /** * Hook that checks whether the current user is allowed to perform a per-account, * FGA-backed `Account.actions` action for the active account. * * The action results are resolved once at manager startup (alongside the user's * permissions) and read synchronously from `useCurrentUser`, so this hook does * not issue a query and does not flip a loading state — mirroring * `useUserPermission`. Use it to gate UI on a per-account action. * * @param action - The `Account.actions` field to check. * @returns {boolean} `true` if the action is allowed, `false` otherwise (including before it has resolved). * @example * ```tsx * import { useAccountAction } from "@trackunit/react-core-hooks"; * * const canManageUsers = useAccountAction("manageUsers"); * ``` */ export declare const useAccountAction: (action: AccountAction) => boolean;