// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface RegexReplacement {
    /**
     * This is the regex pattern to replace.
     *
     * Note:
     * - This works by using the `string.replace` method in Node.JS. Eg. `"hello there".replace(/hello/g, "hi")` will return `"hi there"`.
     *
     * Hot tip:
     * - In JavaScript, escape `\` when sending the regex pattern. Eg. `"hello\sthere"` will be sent over the wire as `"hellosthere"`. Send `"hello\\sthere"` instead.
     */
    regex: string;
    /**
     * These are the options for the regex replacement. Defaults to all disabled.
     *
     * @default []
     */
    options?: Vapi.RegexOption[] | undefined;
    /** This is the value that will replace the match. */
    value: string;
}
