import { ComponentType, ReactNode } from 'react'; import { App, AppSettings, Asset, FracFleet, FullscreenModes, InterventionUnit, User, Well } from '../../types'; export type GlobalOffsetWell = { id: number; [key: string]: unknown; }; /** Host-owned planning scope. Presence identifies a Well Planning dashboard. */ export type WellPlanningDashboardMeta = { assetId: number | null; dashboardId: string; defaultDashboardKind?: string; segment: string | null; }; export type AppDashboardMeta = { /** The host owns app identity and maximization controls. */ isEmbedded?: boolean; isMultiAsset?: boolean; isMultiWell?: boolean; isChiplessDashboard?: boolean; globalOffsetWells?: GlobalOffsetWell[]; globalOffsetWellsVersion?: number; globalOffsetWellsToken?: number; wellPlanning?: WellPlanningDashboardMeta; }; export type AppCommonsContextType = { maximized: boolean; appId: number; app: App; appKey: string; appName: string; appSettings?: AppSettings; onSettingChange: (key: string, value: unknown) => void; onSettingsChange: (value: unknown) => void; well?: Well; rig?: Asset; fracFleet?: FracFleet; interventionUnit?: InterventionUnit; wells?: Well[]; dashboardMeta?: AppDashboardMeta; appHeadersV3Enabled?: boolean; isNonIsolatedApp?: boolean; isNewlyAdded?: boolean; disableAppAssetSelection?: boolean; isMultiRig?: boolean; currentUser?: User; globalOffsetWells?: GlobalOffsetWell[]; globalOffsetWellsVersion?: number; globalOffsetWellsToken?: number; removeApp?: () => void; }; export type AppCommonsContextTypeInternal = AppCommonsContextType & Partial & { /** True in any of the three modes: dashboard maximize, browser fullscreen, separate window */ isExpanded?: boolean; setMaximized: (maximized: boolean) => void; appData?: unknown; layoutEnvironment?: ({ type?: string; } & Record) | null; appSettingsComponent?: ComponentType; toggleAnnotationsList?: () => void; onHelpCenterClick?: () => void; secondaryMenuItems?: { title: ReactNode; onClick?: () => void; icon?: ReactNode; }[]; isInsideNewMobileApp?: boolean; reloadApp?: () => void; }; export declare const AppCommonsContext: import("react").Context; export declare const useAppCommonsInternal: () => AppCommonsContextTypeInternal; export declare const useAppCommons: () => AppCommonsContextType; //# sourceMappingURL=AppCommonsContext.d.ts.map