import React from 'react'; import { MouseDownEvent, OnSkinToneChange } from './config'; export type MutableConfig = { onEmojiClick?: MouseDownEvent; onReactionClick?: MouseDownEvent; onSkinToneChange?: OnSkinToneChange; onSearchChange?: (value: string) => void; onReactionsModeChange?: (reactionsOpen: boolean) => void; }; /** * Sentinel default: marks the absence of a provider. Root adopts the * wrapper-provided ref across the default picker memo boundary and * owns one otherwise (including nested bare Roots). Callbacks stay fresh * without depending on the memoized default tree rerendering. */ export declare const NO_MUTABLE_PROVIDER: React.MutableRefObject; export declare const MutableConfigContext: React.Context<{ ref: React.MutableRefObject; inheritToRoot: boolean; }>; export declare function MutableConfigProvider({ value, inheritToRoot, children, }: { value: React.MutableRefObject; inheritToRoot?: boolean; children: React.ReactNode; }): React.FunctionComponentElement; inheritToRoot: boolean; }>>; export declare function useMutableConfig(): React.MutableRefObject; /** Only the default wrapper crosses its own memo boundary into Root. */ export declare function useInheritedMutableConfig(): React.MutableRefObject; export declare function useDefineMutableConfig(config: MutableConfig): React.MutableRefObject;