type Entry = readonly [ key: string, value: string ]; type Backend = { read(id: string): readonly Entry[]; write(id: string, data: IterableIterator): void; }; type Options = { id: string; backend: Backend; }; export type { Entry, Backend, Options };