export interface UseStateListReturn { state: T; currentIndex: number; setStateAt: (newIndex: number) => void; setState: (state: T) => void; next: () => void; prev: () => void; isFirst: boolean; isLast: boolean; } export default function useStateList(stateSet?: T[]): UseStateListReturn;