import type { FullContact } from "./types"
import { rankFullContacts } from "./contact-match-score"

export function searchContacts(
  contacts: FullContact[],
  query: string
): FullContact[] {
  return rankFullContacts(contacts, query)
}
