import * as _willwade_aac_processors from '@willwade/aac-processors'; /** * Button metric information for effort scoring */ interface ButtonMetric { id: string; label: string; effort: number; count?: number; is_word?: boolean; level?: number; pos?: string; is_word_form?: boolean; parent_button_id?: string; parent_button_label?: string; semantic_id?: string; clone_id?: string; } /** * Props for BoardViewer component */ interface BoardViewerProps { /** The AAC tree containing pages and navigation structure */ tree: _willwade_aac_processors.AACTree; /** Optional button metrics to display effort scores */ buttonMetrics?: ButtonMetric[] | null; /** Show the message bar at the top (default: true) */ showMessageBar?: boolean; /** Show board info text: page name, grid dimensions, page count (default: true). * Navigation controls are unaffected. */ showBoardInfo?: boolean; /** Derive the board background from the page style or the majority button * surround colour, mirroring Grid 3's BackColour surround (default: true) */ derivePageBackground?: boolean; /** Show effort badges on buttons (default: true if metrics provided) */ showEffortBadges?: boolean; /** Show indicators for buttons that link to other pages (default: true) */ showLinkIndicators?: boolean; /** Show word-prediction count badges on buttons (default: true) */ showPredictionIndicators?: boolean; /** Start the viewer on this page id (overrides tree.rootId) */ initialPageId?: string; /** Navigate to this page id when provided (optional, keeps internal navigation) */ navigateToPageId?: string; /** Highlight a specific button/location on the current page */ highlight?: { pageId: string; buttonId?: string; x?: number; y?: number; label?: string; }; /** Callback when a button is clicked */ onButtonClick?: (button: _willwade_aac_processors.AACButton) => void; /** Callback when page changes */ onPageChange?: (pageId: string) => void; /** Custom CSS class name */ className?: string; /** Load ID for fetching images from server (for OBZ files) */ loadId?: string; } /** * Result from loading an AAC file */ interface LoadAACFileResult { tree: _willwade_aac_processors.AACTree; format: string; metadata?: { [key: string]: unknown; }; } interface MetricsOptions { accessMethod?: 'direct' | 'scanning'; scanningConfig?: { pattern?: 'linear' | 'row-column' | 'block'; selectionMethod?: string; errorCorrection?: boolean; }; useSmartGrammar?: boolean; morphologyLocale?: string; } export type { ButtonMetric as B, LoadAACFileResult as L, MetricsOptions as M, BoardViewerProps as a };