import React, { Component } from 'react'; import { Animated } from 'react-native'; import type { CustomStyles, ToggleData, ToolbarCustom, ToolbarTheme } from '../../types'; export interface ContextProps { apply: (name: string, value: any) => void; selectedFormats: object; isSelected: (name: string, value: any) => boolean; theme: ToolbarTheme; show: (name: string, options: Array) => void; hide: Function; open: boolean; options: Array; selectionName: string; getSelected: (name: string) => any; styles?: CustomStyles; } export declare const ToolbarConsumer: React.Consumer; interface ProviderProps { format: Function; selectedFormats: Record; theme: ToolbarTheme; custom?: ToolbarCustom; styles?: CustomStyles; } interface ProviderState { open: boolean; isAnimating: boolean; options: Array; name: string; } export declare class ToolbarProvider extends Component { animatedValue: Animated.Value; constructor(props: ProviderProps); show: (name: string, options: Array) => void; hide: () => void; componentDidMount(): void; isSelected: (name: string, value?: any) => boolean; getSelected: (name: string) => any; apply: (name: string, value: any) => void; render(): JSX.Element; } export declare const withToolbar: (MyComponent: any) => React.ForwardRefExoticComponent>; export declare const useToolbar: () => ContextProps; export {};