import { Collection } from 'typesaurus/collection'
import { Doc } from 'typesaurus/doc'
export default function useGet<Model>(
  collection: Collection<Model>,
  id: string | undefined
): typeof id extends undefined ? undefined : Doc<Model> | null | undefined
