UNPKG

@chittyos/shared

Version:

ChittyOS Shared Dependencies Framework - Consolidated dependencies for all ChittyOS components

24 lines (20 loc) 870 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { ReactNode } from 'react'; import { C as ChittyConfig } from './framework-Dw4p_w5U.js'; declare function useChittyApp(): ChittyContextType; interface ChittyContextType { config: ChittyConfig; apps: string[]; framework: string; version: string; isAppInstalled: (appName: string) => boolean; getAppConfig: (appName: string) => any; } declare const ChittyContext: React.Context<ChittyContextType | null>; interface ChittyProviderProps { children: ReactNode; config?: Partial<ChittyConfig>; } declare function ChittyProvider({ children, config: userConfig }: ChittyProviderProps): react_jsx_runtime.JSX.Element; export { ChittyProvider as C, type ChittyContextType as a, ChittyContext as b, type ChittyProviderProps as c, useChittyApp as u };