import { ReactNode } from 'react'; import { ButtonSize } from './Button.js'; import { SurfaceVariant } from './Surface.js'; /** * Defaults applied to every `ToolbarButton` inside a `Toolbar`. Each field overrides the * corresponding `Button` default - individual `ToolbarButton` props still take precedence. */ interface ToolbarContextValue { /** Default `size` for buttons in this toolbar. */ size?: ButtonSize; /** Default `rounded` (pill) for buttons in this toolbar. */ rounded?: boolean; /** Default `variant` for buttons in this toolbar. */ variant?: SurfaceVariant; /** Default `outline` for buttons in this toolbar. */ outline?: boolean; } interface ToolbarContextProviderProps { /** Defaults to publish to descendant `ToolbarButton`s. */ value: ToolbarContextValue; /** Subtree that should read these defaults. */ children: ReactNode; } export declare const ToolbarContext: import("react").Context; export declare function useToolbarContext(): ToolbarContextValue; export declare function ToolbarContextProvider(props: ToolbarContextProviderProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=ToolbarContext.d.ts.map