import { TimelineStateSnapshot } from "@techsquidtv/canvas-timeline-core"; //#region src/hooks/core/useTimelineState.d.ts /** * Reads the current synchronized {@link TimelineStateSnapshot} snapshot. * * @remarks * * Use `useTimelineState` for low-frequency product chrome that needs a broad * view of timeline content, viewport, playback, markers, or edit feedback * without calling engine methods. The returned snapshot updates when * {@link TimelineProvider} receives engine state events. * * Prefer narrower hooks when a component only needs one live value. For example, * use {@link useTimelinePlayheadTime} for playback readouts and * {@link useTimelineViewport} for viewport controls. See * {@link https://canvastimeline.com/docs/react-hooks | React editor hooks} for * the hook selection guide. * * @returns The latest `TimelineStateSnapshot` snapshot published by `TimelineProvider`. * * @example * ```tsx * import { useTimelineState } from '@techsquidtv/canvas-timeline-react'; * * export function TimelineStatus() { * const state = useTimelineState(); * * return ( *