export interface Resource { read(key: Input): Value; preload(key: Input): void; } export function unstable_createResource( fetch: (input: Input) => PromiseLike, maybeHashInput?: (input: Input) => string | number, ): Resource;