/** * each item in the array gets its own key * @param groupKey * @param isValid * @returns */ export declare function useForageSortedArray(groupKey: string, isValid: (x: unknown) => boolean, defaultArray?: T[], keyBy?: (x: T) => string): { isLoading: boolean; keysInSortedOrder: string[]; itemMap: Record; set: (key: string, value: T) => Promise; reorder: (newOrder: string[]) => Promise; reset: () => Promise; add: (val: T, key?: string) => Promise; remove: (key: string) => Promise; items: T[]; init: () => Promise; batchRemove: (keys: string[]) => Promise; batchAdd: (values: T[]) => Promise; batchAddRemove: (valuesToAdd: T[], keysToRemove: string[]) => Promise; };