/** * Ensures that the string ends with the given suffix. * * @example * ```ts * ensureSuffix('foo', 'bar'); // 'foobar' * ensureSuffix('foobar', 'bar'); // 'foobar' * ``` */ declare function ensureSuffix(string: S, suffix: Suffix): EnsureSuffix; type EnsureSuffix = S extends `${infer _Prefix}${Suffix}` ? S : `${S}${Suffix}`; export { ensureSuffix as e };