/** * Ensures that the string starts with the given prefix. * * @example * ```ts * ensurePrefix('foo', 'bar'); // 'barfoo' * ensurePrefix('foobar', 'foo'); // 'foobar' * ``` */ declare function ensurePrefix(string: S, prefix: Prefix): EnsurePrefix; type EnsurePrefix = S extends `${Prefix}${infer _Suffix}` ? S : `${Prefix}${S}`; export { ensurePrefix as e };