type WithDataSourceProps = { sort?: string[]; defaultSort?: { field: string; direction: 'asc' | 'desc'; }; queryKey: string; endpoint?: string; fetchFunction?: (url: string, options?: RequestInit) => Promise; fetchFn?: (url: string, options?: RequestInit) => Promise; localData?: any[]; syncWithUrl?: boolean; refresh?: number; abbreviated?: string; loading?: boolean; onlyLocalData?: boolean; [key: string]: any; }; type WithDataSourceChildProps = { page: number; items: any[]; total: number; limit?: number; loading: boolean | undefined; queryKey: string; firstLoad: boolean; selectable?: boolean; showPagination?: number; sort: string[] | undefined; onlyLocalData?: boolean; filterValues: { queryValue?: string; [key: string]: string | any[] | undefined; }; setPage: (page: number) => void; setSort: (sort: string[]) => void; setFilterValues: (filterValues: { queryValue: string; [key: string]: string | any[] | undefined; }) => void; /** * Function to update viewSelected in URL params */ setViewSelected: (view: { _id?: string; name: string; filters: { queryValue?: string; [key: string]: any; }; } | null) => void; /** * Object returned by calling the function `useSetIndexFiltersMode` */ useSetIndexFiltersMode: any; /** * Object returned by calling the function `useIndexResourceState` */ useIndexResourceState: any; }; export type { WithDataSourceProps as W, WithDataSourceChildProps as a };