import { Collection } from 'typesaurus/collection'
import { Doc } from 'typesaurus/doc'
export default function useGetMany<Model>(
  collection: Collection<Model>,
  ids: readonly string[] | undefined,
  onMissing?: ((id: string) => Model) | 'ignore'
): typeof ids extends undefined ? undefined : Doc<Model>[] | undefined
