import { ExternalStore, GetValueFromKeyPath, KeyPath } from "../types"; export interface Backend { name: string; getSnapshot, T extends GetValueFromKeyPath>(keyPath: KP, defaultValue: T): T; getServerSnapshot, T extends GetValueFromKeyPath>(keyPath: KP, defaultValue: T): T; toExternalStore, T extends GetValueFromKeyPath>(keyPath: KP, defaultValue: T): ExternalStore; }