import type { MaybeRefOrGetter } from "vue"
import type {
  CustomStoreActionParams,
  CustomStoreActionsPayload,
} from "@racletteCore/types"

/** Params accepted by Vue plugin `$data` methods (refs/computed/getters allowed). */
export type VueQueryParamsInput =
  | MaybeRefOrGetter<CustomStoreActionParams | undefined>
  | CustomStoreActionParams
  | undefined

/** Vue orchestrator payload — extends core with reactive `params`. */
export type VueStoreActionsPayload = Omit<
  CustomStoreActionsPayload,
  "params"
> & {
  params?: MaybeRefOrGetter<CustomStoreActionParams | undefined>
}
