/* * 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 { MediaControlsContextValue } from "./types.js"; import "client-only"; import * as react12 from "react"; import { PropsWithChildren } from "react"; import * as react_jsx_runtime59 from "react/jsx-runtime"; //#region src/components/media-controls/context.d.ts /** * Context for MediaControls component. * * Provides shared configuration values (isDisabled) to all child controls. */ declare const MediaControlsContext: react12.Context; /** * Validates that media-chrome's MediaProvider is present. * * @throws {Error} Throws if called outside a MediaProvider context. */ declare function useMediaProviderGuard(): void; /** * Resolves disabled state from prop or context. * * Returns true if either the prop or context indicates disabled. * A parent context disabling controls cannot be overridden by children. * * @param propIsDisabled - The disabled prop value. * @returns The resolved disabled state. */ declare function useMediaControlsDisabled(propIsDisabled?: boolean): boolean; /** * Provider for MediaControls component. * * Provides shared configuration to all media control children. * * @param props - The provider props. * @param props.children - Child components to receive context. * @param props.isDisabled - Whether controls are disabled. * @returns The context provider wrapping children. * * @example * ```tsx * * * * * ``` */ declare function MediaControlsProvider({ children, isDisabled }: PropsWithChildren>): react_jsx_runtime59.JSX.Element; //#endregion export { MediaControlsContext, MediaControlsProvider, useMediaControlsDisabled, useMediaProviderGuard }; //# sourceMappingURL=context.d.ts.map