import * as React from 'react'; import { StyleProp, ViewStyle, View } from 'react-native'; import Surface from './Surface'; declare type Props = React.ComponentProps & { /** * Whether the Snackbar is currently visible. */ visible: boolean; /** * Label and press callback for the action button. It should contain the following properties: * - `label` - Label of the action button * - `onPress` - Callback that is called when action button is pressed. */ action?: { label: string; accessibilityLabel?: string; onPress: () => void; }; /** * The duration for which the Snackbar is shown. */ duration?: number; /** * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called. */ onDismiss: () => void; /** * Text content of the Snackbar. */ children: React.ReactNode; /** * Style for the wrapper of the snackbar */ wrapperStyle?: 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, action, duration, onDismiss, children, wrapperStyle, style, theme, ...rest }: Props): JSX.Element | null; /** * Show the Snackbar for a short duration. */ DURATION_SHORT: number; /** * Show the Snackbar for a medium duration. */ DURATION_MEDIUM: number; /** * Show the Snackbar for a long duration. */ DURATION_LONG: number; }) | (React.FunctionComponent & { ({ visible, action, duration, onDismiss, children, wrapperStyle, style, theme, ...rest }: Props): JSX.Element | null; /** * Show the Snackbar for a short duration. */ DURATION_SHORT: number; /** * Show the Snackbar for a medium duration. */ DURATION_MEDIUM: number; /** * Show the Snackbar for a long duration. */ DURATION_LONG: number; }), {}>) | (React.FunctionComponent & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & { ({ visible, action, duration, onDismiss, children, wrapperStyle, style, theme, ...rest }: Props): JSX.Element | null; /** * Show the Snackbar for a short duration. */ DURATION_SHORT: number; /** * Show the Snackbar for a medium duration. */ DURATION_MEDIUM: number; /** * Show the Snackbar for a long duration. */ DURATION_LONG: number; }) | (React.FunctionComponent & { ({ visible, action, duration, onDismiss, children, wrapperStyle, style, theme, ...rest }: Props): JSX.Element | null; /** * Show the Snackbar for a short duration. */ DURATION_SHORT: number; /** * Show the Snackbar for a medium duration. */ DURATION_MEDIUM: number; /** * Show the Snackbar for a long duration. */ DURATION_LONG: number; }), {}>); export default _default;