import type { Ref } from 'vue'; import type { Sort } from '@/composables/sort/sort.composable'; export interface QueryParams { filters?: Record; search?: string; sort?: Sort[]; } export interface WithSearchQuery { search?: string; } export interface WithSortQuery { sort: Sort[]; } export interface WithFilterQuery> { filters: TFilters; } export interface InfiniteQueryOptions { params: { [K in keyof TParams]: Ref; }; }