export interface Actions { set: (list: T[]) => void; push: (item: T) => void; filter: (fn: (value: T) => boolean) => void; sort: (fn?: (a: T, b: T) => number) => void; } declare const useList: (initialList?: T[]) => [T[], Actions]; export default useList;