import { type ReactNode } from 'react'; import { type TimeRange } from '@grafana/data'; /** * @deprecated Shape returned by `useTimeRangeContext`, which is itself deprecated. * Will be removed in the next major version of `@grafana/ui`. */ export type TimeRangeContextHookValue = { syncedValue?: TimeRange; synced: boolean; syncPossible: boolean; sync(value: TimeRange): void; unSync(): void; }; /** * @deprecated This provider was gated by the `timeRangeProvider` feature flag, * which was never enabled in any environment and has been removed. The provider * is now dormant and will be removed in the next major version of `@grafana/ui`. */ export declare function TimeRangeProvider({ children }: { children: ReactNode; }): import("react").JSX.Element; /** * @deprecated Read side of the deprecated `TimeRangeProvider`. Without a provider mounted * this hook always returns `undefined`. Will be removed in the next major version of `@grafana/ui`. */ export declare function useTimeRangeContext(initialSyncValue?: TimeRange): TimeRangeContextHookValue | undefined;