UNPKG

ivr-tester

Version:

An automated testing framework for IVR call flows

11 lines (10 loc) 578 B
import { When } from "./When"; /** * Compares two strings to determine if they're similar. * See https://www.npmjs.com/package/string-similarity#api to read how similarity is calculated. * * @param similarText - Text that is compared to the transcript for similarity * @param similarityThreshold - The degree of similarity is measured in a fraction between 0 and 1. * 0 indicates completely different strings, 1 indicates identical strings. The comparison is case-sensitive. */ export declare const similarTo: (similarText: string, similarityThreshold?: number) => When;