/**
 * Converts a value to a string if it is not `undefined` or `null`.
 *
 * If the input value is `undefined` or `null`, returns `undefined`.
 * Otherwise, returns the string representation of the value.
 *
 * @param value - The value to convert.
 * @returns The string representation of the value, or `undefined` if the value is `undefined` or `null`.
 *
 * @example
 * toStringIfDefined(123); // '123'
 * toStringIfDefined(null); // undefined
 * toStringIfDefined(undefined); // undefined
 * toStringIfDefined(true); // 'true'
 */
export declare function toStringIfDefined(value: unknown): string | undefined;
//# sourceMappingURL=to-string-if-defined.d.ts.map