import * as React from 'react'; import { StyleProp, TextStyle } from 'react-native'; import Title from '../Typography/Title'; declare type Props = React.ComponentPropsWithRef & { /** * Title text for the `DialogTitle`. */ children: React.ReactNode; style?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; }; /** * A component to show a title in a Dialog. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { Paragraph, Dialog, Portal } from 'react-native-paper'; * * const MyComponent = () => { * const [visible, setVisible] = React.useState(false); * * const hideDialog = () => setVisible(false); * * return ( * * * This is a title * * This is simple dialog * * * * ); * }; * * export default MyComponent; * ``` */ declare const DialogTitle: { ({ children, theme, style, ...rest }: Props): JSX.Element; displayName: string; }; declare const _default: React.ComponentType; /** * @optional */ theme: ReactNativePaper.Theme; }, keyof import("react-native").TextProps> & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics; /** * @optional */ theme: ReactNativePaper.Theme; }> & { ({ children, theme, style, ...rest }: Props): JSX.Element; displayName: string; }, {}>; export default _default; export { DialogTitle };