export declare function useIndex(path: (id: string) => string): { get: (id: string) => T | undefined; set: (id: string, data: T) => void; };