import { type ReactNode } from 'react';
/**
 * Trims leading and trailing whitespace from a `ReactNode`.
 *
 * Recursively processes the node to remove whitespace-only strings from the start and end:
 *
 * - Strings: Returns the trimmed string.
 * - Numbers/booleans/null/undefined: Returns as-is.
 * - Arrays: Removes leading/trailing whitespace-only elements, trims edge strings.
 * - React elements (including fragments): Returns a new element with trimmed children.
 *
 * @example
 *
 * ```tsx
 * trimReactNode('  hello  ') // 'hello'
 * trimReactNode(
 *   <>
 *     {' '}
 *     <span>test</span>{' '}
 *   </>,
 * ) // <><span>test</span></>
 * trimReactNode([' ', <div>content</div>, ' ']) // [<div>content</div>]
 * ```
 *
 * @param node - The `ReactNode` to trim.
 * @returns A new `ReactNode` with leading and trailing whitespace removed.
 */
export declare function trimReactNode(reactNode: ReactNode): ReactNode;
//# sourceMappingURL=trimReactNode.d.ts.map