import { _ as LabelParams, a as InteractionState, c as SpanSelection, h as LabelKey, i as CalendarState, l as ViewState, n as useUI, o as PointSelection, s as SelectionState, t as SchemeMode } from "./ui-context--f27L7Ww.js"; import { a as CalendarStore, i as useCalendarStore, o as CalendarAction, r as useCalendarActions, s as CalendarActionType, t as CalendarActions } from "./provider-C6X3UtlL.js"; import { ReactNode } from "react"; //#region src/react/labels-context.d.ts /** * Root-level label overrides, exposed to every module as a resolver. Modules * call `useLabels()` and resolve `key → (module override) → root override → * English default`, so no module hard-codes an aria string and every label is * overridable at the root via ``. */ type LabelResolver = (key: LabelKey, params?: LabelParams, /** Module-level override (usually a component's `label` prop). */ moduleOverride?: string) => string; /** * The label resolver for the nearest provider. Falls back to a root-less * resolver (English defaults + module overrides) when used outside a provider, * so primitives stay usable in isolation/tests without throwing. */ declare function useLabels(): LabelResolver; //#endregion //#region src/react/use-store-selector.d.ts /** * Subscribe to a narrow slice of the store and re-render only when that slice * changes. This is the lever behind the calendar's per-cell performance: a day * cell selects its own `dayFlags` (a number), so `Object.is` bails out and the * cell skips rendering unless its own bitmask moved — hover over one cell wakes * two or three neighbours, not all 42 × N. * * Zero-dep equivalent of `useSyncExternalStoreWithSelector`: the snapshot is * stabilized through a ref so an equal selection returns the previous reference * (no tearing, no render loop when a selector builds a fresh object). */ declare function useStoreSelector(store: CalendarStore, selector: (state: CalendarState) => T, isEqual?: (a: T, b: T) => boolean): T; //#endregion export { type CalendarAction, type CalendarActionType, type CalendarActions, type CalendarState, type CalendarStore, type InteractionState, type PointSelection, type SchemeMode, type SelectionState, type SpanSelection, type ViewState, useCalendarActions, useCalendarStore, useLabels, useStoreSelector, useUI };