import * as React from 'react'; import { Animated, StyleProp, ViewStyle, View } from 'react-native'; import type { Theme } from '../../types'; 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: Theme; }; declare const _default: React.ComponentType | "action" | "duration" | "onDismiss" | "wrapperStyle"> & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics & { ({ visible, action, duration, onDismiss, children, wrapperStyle, style, theme, ...rest }: Props): React.JSX.Element | null; DURATION_SHORT: number; DURATION_MEDIUM: number; DURATION_LONG: number; }, {}>; export default _default; //# sourceMappingURL=Snackbar.d.ts.map