// @flow strict

import { type FetchedPhone } from "../../records/Phone";

export type Validator = {| error: string, code?: string |}; // "" means no error

declare export function call(phone: string): Promise<FetchedPhone>;

declare export var validate: (val: string) => Promise<Validator>;
