@grafana/ui
Version:
Grafana Components Library
14 lines (13 loc) • 496 B
TypeScript
import { ReactNode } from 'react';
import { TimeRange } from '@grafana/data';
export type TimeRangeContextHookValue = {
syncedValue?: TimeRange;
synced: boolean;
syncPossible: boolean;
sync(value: TimeRange): void;
unSync(): void;
};
export declare function TimeRangeProvider({ children }: {
children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function useTimeRangeContext(initialSyncValue?: TimeRange): TimeRangeContextHookValue | undefined;