/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { ProviderProps } from "../../lib/types.js"; import { ButtonProps, LinkButtonProps, ToggleButtonProps } from "./types.js"; import "client-only"; import * as react28 from "react"; import * as react_jsx_runtime115 from "react/jsx-runtime"; import { ContextValue } from "react-aria-components/slots"; //#region src/components/button/context.d.ts /** * React context for sharing Button configuration across components. */ declare const ButtonContext: react28.Context>; /** * Context provider for setting default props across multiple Button components. * * @param props - The provider props. * @param props.children - Child components that will receive the button context. * @returns The button context provider wrapping children. * * @example * ```tsx * * * * * ``` */ declare function ButtonProvider({ children, ...props }: ProviderProps): react_jsx_runtime115.JSX.Element; /** * React context for sharing LinkButton configuration across components. */ declare const LinkButtonContext: react28.Context>; /** * Context provider for setting default props across multiple LinkButton components. * * @param props - The provider props. * @param props.children - Child components that will receive the link button context. * @returns The link button context provider wrapping children. * * @example * ```tsx * * Link 1 * Link 2 * * ``` */ declare function LinkButtonProvider({ children, ...props }: ProviderProps): react_jsx_runtime115.JSX.Element; /** * React context for sharing ToggleButton configuration across components. */ declare const ToggleButtonContext: react28.Context>; /** * Context provider for setting default props across multiple ToggleButton components. * * @param props - The provider props. * @param props.children - Child components that will receive the toggle button context. * @returns The toggle button context provider wrapping children. * * @example * ```tsx * * Toggle 1 * Toggle 2 * * ``` */ declare function ToggleButtonProvider({ children, ...props }: ProviderProps): react_jsx_runtime115.JSX.Element; //#endregion export { ButtonContext, ButtonProvider, LinkButtonContext, LinkButtonProvider, ToggleButtonContext, ToggleButtonProvider }; //# sourceMappingURL=context.d.ts.map