import * as React from 'react'; import { StyleProp, TouchableWithoutFeedback, ViewStyle, TextStyle } from 'react-native'; declare type Props = React.ComponentPropsWithRef & { /** * Text content of the `DataTableTitle`. */ children: React.ReactNode; /** * Align the text to the right. Generally monetary or number fields are aligned to right. */ numeric?: boolean; /** * Direction of sorting. An arrow indicating the direction is displayed when this is given. */ sortDirection?: 'ascending' | 'descending'; /** * The number of lines to show. */ numberOfLines?: number; /** * Function to execute on press. */ onPress?: () => void; style?: StyleProp; /** * Text content style of the `DataTableTitle`. */ textStyle?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }; /** * A component to display title in table header. * *
*
* *
*
* * * ## Usage * ```js * import * as React from 'react'; * import { DataTable } from 'react-native-paper'; * * const MyComponent = () => ( * * * * Dessert * * Calories * Fat (g) * * * ); * * export default MyComponent; * ``` */ declare const DataTableTitle: { ({ numeric, children, onPress, sortDirection, theme, textStyle, style, numberOfLines, ...rest }: Props): JSX.Element; displayName: string; }; declare const _default: React.ComponentType & { /** * Text content of the `DataTableTitle`. */ children: React.ReactNode; /** * Align the text to the right. Generally monetary or number fields are aligned to right. */ numeric?: boolean | undefined; /** * Direction of sorting. An arrow indicating the direction is displayed when this is given. */ sortDirection?: "ascending" | "descending" | undefined; /** * The number of lines to show. */ numberOfLines?: number | undefined; /** * Function to execute on press. */ onPress?: (() => void) | undefined; style?: StyleProp; /** * Text content style of the `DataTableTitle`. */ textStyle?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }, "numberOfLines" | keyof import("react-native").TouchableWithoutFeedbackProps | keyof React.RefAttributes | "numeric" | "textStyle" | "sortDirection"> & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics & { /** * Text content of the `DataTableTitle`. */ children: React.ReactNode; /** * Align the text to the right. Generally monetary or number fields are aligned to right. */ numeric?: boolean | undefined; /** * Direction of sorting. An arrow indicating the direction is displayed when this is given. */ sortDirection?: "ascending" | "descending" | undefined; /** * The number of lines to show. */ numberOfLines?: number | undefined; /** * Function to execute on press. */ onPress?: (() => void) | undefined; style?: StyleProp; /** * Text content style of the `DataTableTitle`. */ textStyle?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }> & { ({ numeric, children, onPress, sortDirection, theme, textStyle, style, numberOfLines, ...rest }: Props): JSX.Element; displayName: string; }, {}>; export default _default; export { DataTableTitle };