import type { ReactNode } from "react"; import type { Entry } from "../pages/logbook/entry/models/Entry"; export interface LogbookEntryActionsContext { entry: Entry; isNewEntry: boolean; isDirty: boolean; requestSave: () => void; } export interface LogbookEntrySettings { withAssetFilter?: "tree" | "selector"; filterAssets?: "area"; canEditAsset?: boolean; presetAssetId?: number; allowAttachments?: boolean; canEditShift?: boolean; showShiftCrew?: boolean; exportToExcel?: boolean; shiftsRange?: number; useShiftNavigatorBasedOnAsset?: boolean; entryActions?: (context: LogbookEntryActionsContext) => ReactNode; } export interface LogbookReportSettings { withAssetFilter?: "tree" | "selector"; filterAssets?: "area"; showAttachments?: boolean; showAsset?: boolean; showShiftCrew?: boolean; exportToExcel?: boolean; } export interface LogbookSectionSettings { schema?: string; withAssetFilter?: "tree" | "selector"; filterAssets?: "area"; canEditAsset?: boolean; allowAttachments?: boolean; showShiftCrew?: boolean; exportToExcel?: boolean; topSectionsCount?: number; } export interface LogbookSettingsState { entry: LogbookEntrySettings; report: LogbookReportSettings; section: LogbookSectionSettings; } export declare const LogbookSettingsInitialState: LogbookSettingsState;