import * as React from 'react'; import { View, ViewStyle, StyleProp } from 'react-native'; import Surface from './Surface'; import { IconSource } from './Icon'; import type { $RemoveChildren } from '../types'; declare type Props = $RemoveChildren & { /** * Whether banner is currently visible. */ visible: boolean; /** * Content that will be displayed inside banner. */ children: string; /** * Icon to display for the `Banner`. Can be an image. */ icon?: IconSource; /** * Action items to shown in the banner. * An action item should contain the following properties: * * - `label`: label of the action button (required) * - `onPress`: callback that is called when button is pressed (required) * * To customize button you can pass other props that button component takes. */ actions: Array<{ label: string; onPress: () => void; }>; /** * Style of banner's inner content. * Use this prop to apply custom width for wide layouts. */ contentStyle?: StyleProp; style?: StyleProp; ref?: React.RefObject; /** * @optional */ theme: ReactNativePaper.Theme; }; declare const _default: (React.ComponentClass & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ visible, icon, children, actions, contentStyle, style, theme, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ visible, icon, children, actions, contentStyle, style, theme, ...rest }: Props) => JSX.Element)), {}>) | (React.FunctionComponent & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ visible, icon, children, actions, contentStyle, style, theme, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ visible, icon, children, actions, contentStyle, style, theme, ...rest }: Props) => JSX.Element)), {}>); export default _default;