import { type ReactNode } from 'react'; import type { TimelineClock } from '../core/timeline'; /** * Raw context — exported so container components can peek with * `useContext(ClockContext)` to detect whether a clock is available * without throwing. Prefer `useClockContext` for code that needs the * resolved clock. */ export declare const ClockContext: import("react").Context; export interface ClockProviderProps { clock: TimelineClock; children: ReactNode; } export declare function ClockProvider({ clock, children }: ClockProviderProps): import("react/jsx-runtime").JSX.Element; /** * Pure resolver — exposed for testing and for non-hook consumers. * Priority: explicit argument > context value > throw. */ export declare function resolveClock(explicit: TimelineClock | null | undefined, ctx: TimelineClock | null): TimelineClock; /** * Resolve a TimelineClock from an explicit argument or the nearest * ``. Throws if neither is available. */ export declare function useClockContext(explicit?: TimelineClock | null): TimelineClock; //# sourceMappingURL=clock-context.d.ts.map