/** * Copyright IBM Corp. 2016, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { type ElementType, type ReactElement, type ReactNode } from 'react'; import { PolymorphicComponentPropWithRef, PolymorphicRef } from '../../internal/PolymorphicProps'; import { type TextDir } from './TextDirectionContext'; export interface TextBaseProps { dir?: TextDir; children?: ReactNode; } export type TextProps = PolymorphicComponentPropWithRef; type TextComponent = { (props: TextProps & { ref?: PolymorphicRef; }): ReactElement | null; displayName?: string; }; export declare const Text: TextComponent; export {};