//#region src/functions/ensurePrefix/ensurePrefix.d.ts /** * Ensures that the string starts with the given prefix. * @param string The string to ensure the prefix of. * @param prefix The prefix to ensure. * @returns The string 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}`; //#endregion export { ensurePrefix as t }; //# sourceMappingURL=ensurePrefix-Cdg7rBCw.d.ts.map