import type { MinimalValidConfig, RawSerieData, YagrConfig } from '@gravity-ui/yagr'; import type Yagr from '@gravity-ui/yagr'; import { ChartKitProps } from 'src/types'; export type { default as Yagr } from '@gravity-ui/yagr'; export type { YagrReactRef } from '@gravity-ui/yagr/react'; export * from '@gravity-ui/yagr/dist/types'; export interface CustomTooltipProps { yagr: Yagr | undefined; } export type YagrWidgetProps = ChartKitProps<'yagr'> & { id: string; }; export type YagrWidgetData = { data: { graphs: RawSerieData[]; timeline: number[]; /** * Allow to setup timezone for X axis and tooltip's header. * * Format example: "UTC", "Europe/Moscow". * * For more examples check [wiki](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) */ timeZone?: string; }; libraryConfig: Partial; sources?: Record; };