UNPKG

527 BTypeScriptView Raw
1import type { ReactNode } from 'react';
2import React from 'react';
3import type { AnyObject, CustomComponent } from '../_util/type';
4import type { AppConfig, useAppProps } from './context';
5export interface AppProps<P = AnyObject> extends AppConfig {
6 style?: React.CSSProperties;
7 className?: string;
8 rootClassName?: string;
9 prefixCls?: string;
10 children?: ReactNode;
11 component?: CustomComponent<P> | false;
12}
13declare const App: React.FC<AppProps> & {
14 useApp: () => useAppProps;
15};
16export default App;