/** * Type guard that returns the value if it's a non-empty string, otherwise returns undefined. * This is useful for ensuring type safety when working with props that should be strings. * * @example * // Returns 'hello' * onlyString('hello'); * * // Returns undefined * onlyString(42); * onlyString(''); * onlyString(null); * onlyString(undefined); */ export declare function onlyString
(prop: P): (P & string) | undefined; //# sourceMappingURL=propGuards.d.ts.map