//#region src/nonempty.d.ts /** * A string type that guarantees at least one character. * Used for `metavar` properties to ensure they are never empty. * * This type uses a template literal pattern that requires at least one * character, providing compile-time rejection of empty string literals. * * @since 0.9.0 */ type NonEmptyString = `${any}${string}`; /** * Checks if a string is non-empty. * Can be used as a type guard for type narrowing. * @param value The string to check. * @returns `true` if the string is non-empty, `false` otherwise. * @since 0.9.0 */ declare function isNonEmptyString(value: string): value is NonEmptyString; /** * Asserts that a string is non-empty. * Throws a `TypeError` if the string is empty. * @param value The string to validate. * @throws {TypeError} If the string is empty. * @since 0.9.0 */ declare function ensureNonEmptyString(value: string): asserts value is NonEmptyString; //#endregion export { NonEmptyString, ensureNonEmptyString, isNonEmptyString };