declare namespace SSReactLibs { interface ComponentProps { className?: string; style?: React.CSSProperties; } class Component extends React.Component { } class PureComponent extends React.PureComponent { } } declare namespace SSReactUI { type noneFun = () => void ; // Base STransition interface STransitionProps extends SSReactLibs.ComponentProps<{}> { onEnter?: noneFun; onEntering?: noneFun; onEntered?: noneFun; onExit?: noneFun; onExiting?: noneFun; onExited?: noneFun; in?: boolean; unmountOnExit?: boolean; duration?: number; animation?: string; } export class STransition extends SSReactLibs.Component { } // Base SView interface SViewProps extends SSReactLibs.ComponentProps<{}> { show?: boolean; className?: string; children?: any; style?: any; } export class SView extends SSReactLibs.Component { } // SInput interface SInputProps extends SSReactLibs.ComponentProps<{}> { placeholder?: string; default?: string; autofocus?: boolean; width?: string; height?: string; padding?: string; fontSize?: number; borderWidth?: number; borderColor?: string; clearable?: boolean; } export class SInput extends SSReactLibs.PureComponent { } // SButton interface SButtonProps extends SSReactLibs.ComponentProps<{}> { onClick?(e: React.SyntheticEvent): void; color?: string; bgColor?: string; title?: string; fontSize?: string; icon?: string; } export class SButton extends SSReactLibs.Component { } // SIcon interface SIconProps extends SSReactLibs.ComponentProps<{}> { icon: string; color?: string; fontSize?: string; } export class SIcon extends SSReactLibs.PureComponent { } // SMessageBox interface MsgBoxOptions { message?: string; } export const SMessageBox: { alert(title: string, props?: MsgBoxOptions): Promise; }; } declare module "ss_react_ts_ui" { export import STransition = SSReactUI.STransition export import SView = SSReactUI.SView export import SButton = SSReactUI.SButton export import SInput = SSReactUI.SInput export import SIcon = SSReactUI.SIcon export import SMessageBox = SSReactUI.SMessageBox }