/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
import React, { type ReactNode } from 'react';
type ContextValue = {
    /** Current color mode. */
    readonly colorMode: ColorMode;
    /** Set new color mode. */
    readonly setColorMode: (colorMode: ColorMode) => void;
};
export type ColorMode = 'light' | 'dark';
export declare const ColorModeProvider: ({ children, colorMode, setColorMode, }: {
    readonly children: React.ReactNode;
    readonly setColorMode: (colorMode: ColorMode) => void;
    readonly colorMode: ColorMode;
}) => ReactNode;
export declare function useColorMode(): ContextValue;
export {};
