/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { GanttThresholdProps, GanttTimescale } from "../types.js"; import * as react56 from "react"; import { PropsWithChildren } from "react"; import * as react_jsx_runtime235 from "react/jsx-runtime"; //#region src/components/gantt/context/index.d.ts type GanttContextValue = { timelineContainerElement: HTMLDivElement | null; headerElement: HTMLDivElement | null; rootElement: HTMLDivElement | null; ganttContentElement: HTMLDivElement | null; ganttPanelElement: HTMLDivElement | null; rowHeightPx: number; assignTimelineContainerElementRef: (node: HTMLDivElement | null) => void; assignHeaderElementRef: (node: HTMLDivElement | null) => void; assignRootElementRef: (node: HTMLDivElement | null) => void; assignGanttContentElementRef: (node: HTMLDivElement | null) => void; assignGanttPanelElementRef: (node: HTMLDivElement | null) => void; }; declare const GanttContext: react56.Context; type GanttProviderProps = { /** Start of the total timeline range in epoch milliseconds. */ startTimeMs: number; /** End of the total timeline range in epoch milliseconds. Must be >= startTimeMs. */ endTimeMs: number; /** Interval duration controlling timeline tick mark spacing. */ timescale: GanttTimescale; /** Current time in epoch milliseconds, used for elapsed-state styling. */ currentTimeMs: number; /** Optional threshold configuration for edge-of-data notifications. */ thresholdProps?: GanttThresholdProps; /** Height of each row in pixels. @default 40 */ rowHeightPx?: number; }; declare function GanttProvider({ children, startTimeMs, endTimeMs, timescale, thresholdProps, currentTimeMs, rowHeightPx }: PropsWithChildren): react_jsx_runtime235.JSX.Element; /** @throws {Error} If called outside of a GanttProvider. */ declare function useGanttContext(): GanttContextValue; //#endregion export { GanttContext, GanttContextValue, GanttProvider, GanttProviderProps, useGanttContext }; //# sourceMappingURL=index.d.ts.map