import { ComputedRef, InjectionKey, Ref } from 'vue'; import { BreadcrumbItem } from './CuiBreadcrumbs.vue'; export interface CuiAppProps { /** Initial collapsed state of the menu */ initialMenuCollapsed?: boolean; /** Initial breadcrumb items */ breadcrumbItems?: BreadcrumbItem[]; /** Mobile breakpoint in pixels (default: 768) */ mobileBreakpoint?: number; /** Whether the app is in dashboard mode */ dashboard?: boolean; /** Label for the "Skip to content" link (for i18n) */ skipToContentLabel?: string; /** Label for the accessibility toolbar region (for i18n) */ accessibilityToolbarLabel?: string; } /** * @description CuiApp Context - Provided to all descendant components */ export interface CuiAppContext { /** Reactive reference to menu collapsed state */ isMenuCollapsed: Ref; /** Reactive reference to mobile viewport state */ isMobile: Ref; /** Reactive reference to dashboard mode state */ isDashboard: Ref; /** Computed array of current breadcrumb items */ breadcrumbItems: ComputedRef; /** * Template ref to the flex container that wraps
. CuiDrawer teleports * here by default (when its `inline` prop is false) so it sits as a sibling * of the main content and pushes it on desktop / overlays on mobile. */ drawerOutletRef: Ref; /** Toggle menu between collapsed and expanded states */ toggleMenu: () => void; /** Close (collapse) the menu */ closeMenu: () => void; /** Update all breadcrumb items */ updateBreadcrumbs: (items: BreadcrumbItem[]) => void; /** Add a breadcrumb item to the end */ addBreadcrumb: (item: BreadcrumbItem) => void; /** Remove the last breadcrumb item */ popBreadcrumb: () => void; /** Clear all breadcrumb items */ clearBreadcrumbs: () => void; } /** * Injection key for CuiApp context * Use this key with inject() to access the app context in descendant components */ export declare const CuiAppContextKey: InjectionKey; declare const _default: __VLS_WithTemplateSlots void; addBreadcrumb: (item: BreadcrumbItem) => void; popBreadcrumb: () => void; clearBreadcrumbs: () => void; toggleMenu: () => void; closeMenu: () => void; isMenuCollapsed: Ref; isMobile: Ref; isDashboard: Ref; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "menu-toggle": (collapsed: boolean) => any; "viewport-change": (isMobile: boolean) => any; "breadcrumbs-update": (items: BreadcrumbItem[]) => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ "onMenu-toggle"?: ((collapsed: boolean) => any) | undefined; "onViewport-change"?: ((isMobile: boolean) => any) | undefined; "onBreadcrumbs-update"?: ((items: BreadcrumbItem[]) => any) | undefined; }>, { initialMenuCollapsed: boolean; breadcrumbItems: BreadcrumbItem[]; mobileBreakpoint: number; dashboard: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { drawerOutletRef: HTMLDivElement; mainContentRef: HTMLElement; }, any>, Readonly<{ /** * Menu slot for navigation menu component * Use inject(CuiAppContextKey) to access app state and methods */ menu?: () => any; /** * Header slot for header component * Use inject(CuiAppContextKey) to access app state and methods */ header?: () => any; /** * Accessibility bar slot for accessibility settings (theme toggle, font size, etc.) * Rendered inside the accessibility toolbar, visible only on keyboard focus. * Use inject(CuiAppContextKey) to access app state and methods */ accessibilityBar?: () => any; /** * Default slot for main content area * This is where the primary application content should be placed * Use inject(CuiAppContextKey) to access app state and methods */ default?: () => any; }> & { /** * Menu slot for navigation menu component * Use inject(CuiAppContextKey) to access app state and methods */ menu?: () => any; /** * Header slot for header component * Use inject(CuiAppContextKey) to access app state and methods */ header?: () => any; /** * Accessibility bar slot for accessibility settings (theme toggle, font size, etc.) * Rendered inside the accessibility toolbar, visible only on keyboard focus. * Use inject(CuiAppContextKey) to access app state and methods */ accessibilityBar?: () => any; /** * Default slot for main content area * This is where the primary application content should be placed * Use inject(CuiAppContextKey) to access app state and methods */ default?: () => any; }>; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };