import { Layout } from 'react-grid-layout'; import { PriceLinesDatum } from '../components/widgets/ChartWidget/CandlestickChart/types'; interface WidgetData { hasSettings: boolean; canSettingsSave: boolean; element: HTMLElement; settingsElement: HTMLElement | null; id: string; title: string; pluginId: string; layout?: Partial>; noPadding?: boolean; bodyClassName?: string; shouldCheckAccount?: boolean; isWidgetInitiallyEnabled: boolean; currentScript: HTMLOrSVGScriptElement | HTMLIFrameElement; listenSettingsSave: (handler: () => void) => (() => void); listenSettingsCancel: (handler: () => void) => (() => void); listenIsWidgetEnabled: (handler: (isEnabled: boolean) => void) => (() => void); listenWidgetDestroy: (handler: () => void) => (() => void); onSettingsSave: () => void; onSettingsCancel: () => void; onSetEnabled: (isEnabled: boolean) => void; onDestroy: () => void; } interface PluginInfo { name: string; id: string; version: string | null; description: string; main?: string | null; style?: string | null; isDefault: boolean; isThirdParty: boolean; isDevelopment: boolean; execute?: () => void; } declare type WidgetId = 'chart' | 'trading' | 'positionAndOrders' | 'lastTrades' | 'orderBook' | 'wallet' | 'minicharts'; export default class App { #private; defaultPlugins: PluginInfo[]; customPlugins: PluginInfo[]; customPriceLines: PriceLinesDatum[]; readonly builtInWidgets: { id: WidgetId; title: string; }[]; pluginWidgets: WidgetData[]; arePluginsLoading: boolean; didPluginsInitialized: boolean; constructor(store: altamoon.RootStore); createWidget: ({ canSettingsSave, hasSettings, id, title, layout, noPadding, bodyClassName, shouldCheckAccount, currentScript, }: { canSettingsSave?: boolean | undefined; hasSettings: boolean; id: string; title: string; layout: Layout; noPadding?: boolean | undefined; bodyClassName?: string | undefined; shouldCheckAccount?: boolean | undefined; currentScript: HTMLOrSVGScriptElement | HTMLIFrameElement; }) => Omit; enablePlugin: (id: string, { isDefault, isThirdParty }: { isDefault: boolean; isThirdParty: boolean; }) => Promise; disablePlugin: (id: string) => void; } export {}; //# sourceMappingURL=Customization.d.ts.map