import type { Option } from 'ts-results' ; export interface KVStorageBackend { setValue ( key , value ) : Promise < void > ; getValue ( key ) : Promise < Option < unknown > > ; beforeAutoSync : Promise < void > ; }