import { default as React, PropsWithChildren } from 'react';
import { SelectUnits } from '../utility/calendar';
import { TimelineContext as TimelineContextValue } from '../types/main';
import { Dayjs } from 'dayjs';
export declare const TimelineContext: React.Context<TimelineContextType>;
export interface TimelineContextType {
    getTimelineState: () => TimelineContextValue;
    getLeftOffsetFromDate: (date: number) => number;
    getDateFromLeftOffsetPosition: (leftOffset: number) => number;
    showPeriod: (from: Dayjs, to: Dayjs) => void;
}
interface TimelineStartProps {
    visibleTimeStart: number;
    visibleTimeEnd: number;
    canvasTimeStart: number;
    canvasTimeEnd: number;
    canvasWidth: number;
    showPeriod: (from: Dayjs, to: Dayjs) => void;
    timelineUnit: SelectUnits;
    timelineWidth: number;
}
export declare function TimelineStateProvider(props: PropsWithChildren<TimelineStartProps>): import("react/jsx-runtime").JSX.Element;
export declare namespace TimelineStateProvider {
    var displayName: string;
}
export declare const TimelineStateConsumer: React.Consumer<TimelineContextType>;
export declare const useTimelineState: () => TimelineContextType;
export {};
//# sourceMappingURL=TimelineStateContext.d.ts.map