/** * Hook to access app state from context */ import type { AppMode } from '../state/app-state.js'; import type { SmrtAppStateManager } from '../state/app-state.svelte.js'; /** * Get the app state manager from context * * @throws If called outside of SmrtProvider * * @example * ```svelte * * ``` */ export declare function useAppState(): SmrtAppStateManager; /** * Try to get app state, returns null if not in context */ export declare function tryUseAppState(): SmrtAppStateManager | null; /** * Helper to check if smrt mode is enabled */ export declare function useIsSmrt(): boolean; /** * Helper to get current mode */ export declare function useMode(): AppMode; /** * Helper to check permissions */ export declare function usePermissions(): { has: (permission: string) => boolean; hasAll: (permissions: string[]) => boolean; hasAny: (permissions: string[]) => boolean; list: string[]; }; //# sourceMappingURL=useAppState.svelte.d.ts.map