import { Injector } from '@opensumi/di'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { URI, getIcon } from '@opensumi/ide-core-browser'; import { EditorComponentRenderMode } from '@opensumi/ide-editor/lib/browser'; import { ToolBarPosition } from '@opensumi/ide-toolbar'; import { IExtension } from '../../common'; /** * Browser 尽量只export视图相关的少量API * 设计API时遵循以下原则: * 1. browser只暴露getter,任何注册、调用等会产生副作用的行为全部放入逻辑层 * @param injector */ export declare function createBrowserApi(injector: Injector, extension: IExtension, rpcProtocol?: IRPCProtocol): { commands: { executeCommand(command: string, ...args: any): Promise; }; ResizeHandleHorizontal: (props: import("@opensumi/ide-core-browser/lib/components").ResizeHandleProps) => React.JSX.Element; ResizeHandleVertical: (props: import("@opensumi/ide-core-browser/lib/components").ResizeHandleProps) => React.JSX.Element; PlainWebview: import("react").ComponentType<{ id: string; renderRoot?: HTMLElement; appendToChild?: boolean; }>; URI: typeof URI; localize: (key: string, message?: string) => string; formatLocalize: (key: string, ...args: string[]) => string; getIcon: typeof getIcon; getThemeColors: () => { [key: string]: string; }; ToolBarPosition: typeof ToolBarPosition; EditorComponentRenderMode: typeof EditorComponentRenderMode; reporter: any; NativeSelect: import("react").FC>; Scrollbars: { ({ onScroll, onUpdate, forwardedRef, style, children, className, onReachBottom, tabBarMode, thumbSize, hiddenVertical, hiddenHorizontal, universal, }: import("@opensumi/ide-components").ICustomScrollbarProps): React.JSX.Element; displayName: string; }; Scroll: { ({ onScroll, onUpdate, forwardedRef, style, children, className, onReachBottom, tabBarMode, thumbSize, hiddenVertical, hiddenHorizontal, universal, }: import("@opensumi/ide-components").ICustomScrollbarProps): React.JSX.Element; displayName: string; }; preventWebviewCatchMouseEvents(): void; allowWebviewCatchMouseEvents(): void; RESIZE_LOCK: "resize-lock"; ResizeFlexMode: typeof import("@opensumi/ide-core-browser/lib/components").ResizeFlexMode; EDirection: typeof import("@opensumi/ide-core-browser/lib/components").EDirection; Layout: typeof import("@opensumi/ide-core-browser/lib/components").Layout; PanelContext: React.Context; SplitPanel: React.FC; BoxPanel: React.FC<{ children?: import("react").ReactElement> | import("react").ReactElement>[]; className?: string; direction?: import("@opensumi/ide-core-browser/lib/components").Layout.direction; flex?: number; zIndex?: number; }>; ToolbarActionBasedLayout(props?: { topSlotDefaultSize?: number; topSlotZIndex?: number; }): React.JSX.Element; fixLayout(layout: import("@opensumi/ide-core-browser/lib/components").ILayoutConfigCache): { [x: string]: { size?: number; currentId?: string; }; }; getStorageValue: () => { layout: { [x: string]: { size?: number; currentId?: string; }; }; colors: { [colorKey: string]: string; }; }; DefaultLayout: typeof import("@opensumi/ide-core-browser/lib/components").ToolbarActionBasedLayout; Button: React.MemoExoticComponent<(({ children, loading, className, type, htmlType, size, ghost, onClick, disabled, block, iconClass, icon, more, moreIconClass, menu, moreVisible, placement, title, showLoadingIcon, onVisibleChange, ...otherProps }: import("@opensumi/ide-components/lib/button").ButtonProps) => React.ReactElement>)>; Badge: React.FC<{} & React.HTMLAttributes>; TextArea: React.ForwardRefExoticComponent & React.RefAttributes>; Input: React.ForwardRefExoticComponent & { as?: any; } & React.RefAttributes>; VALIDATE_TYPE: typeof import("@opensumi/ide-core-browser/lib/components").VALIDATE_TYPE; ValidateInput: React.ForwardRefExoticComponent>; bindInputElement(el: HTMLInputElement): (props: import("@opensumi/ide-core-browser/lib/components").ProxiedInputProp) => React.JSX.Element; InputNumber: React.FC; CheckBox: React.FC & { insertClass?: string; label?: string; size?: "default" | "large"; disabled?: boolean; wrapTabIndex?: number; }>; isDataOptions(options: Array | import("@opensumi/ide-components/lib/select").IDataOptionGroup> | undefined): options is Array>; isDataOptionGroups(options: Array | Array> | import("@opensumi/ide-components/lib/select").IDataOptionGroup[] | undefined): options is import("@opensumi/ide-components/lib/select").IDataOptionGroup[]; Select({ disabled, options, size, children, value, onChange, onMouseEnter, optionLabelProp, style, optionStyle, className, maxHeight, equals, optionRenderer, groupTitleRenderer, footerComponent, headerComponent, showSearch, filterOption, searchPlaceholder, emptyComponent, selectedRenderer, onBeforeShowOptions, allowOptionsOverflow, dropdownRenderType, description, notMatchWarning, onSearchChange, }: import("@opensumi/ide-components/lib/select").ISelectProps): React.JSX.Element; Option: React.FC void; optionLabelProp?: string; disabled?: boolean; label?: string | undefined; style?: any; containerClassName?: string[]; }>>; SelectOptionsList: React.ForwardRefExoticComponent & React.RefAttributes>; Tabs: (props: import("@opensumi/ide-components/lib/tabs").ITabsProps) => React.JSX.Element; Overlay: React.FC>; DialogContent: React.FC; Dialog: React.FC; createFromIconfontCN: typeof import("@opensumi/ide-core-browser/lib/components").createFromIconfontCN; IconContextProvider(props: React.PropsWithChildren<{ value: import("@opensumi/ide-core-browser/lib/components").IiconContext; }>): React.JSX.Element; IconContext: React.Context>; _InternalIcon: React.MemoExoticComponent & React.HTMLAttributes & React.RefAttributes>>; Icon: (props: import("@opensumi/ide-core-browser/lib/components").IconProps, ref: React.Ref) => React.ReactElement; updateIconMap(prefix: string, customIconMap: { [iconKey: string]: string; }): void; getIconShapeClxList(options?: import("@opensumi/ide-core-browser/lib/components").IIconShapeOptions): string[]; ROTATE_TYPE: typeof import("@opensumi/ide-core-browser/lib/components").ROTATE_TYPE; ANIM_TYPE: typeof import("@opensumi/ide-core-browser/lib/components").ANIM_TYPE; getKaitianIcon: typeof getIcon; updateKaitianIconMap: typeof import("@opensumi/ide-core-browser").updateIconMap; open(message: string | React.ReactNode, type: import("@opensumi/ide-core-browser").MessageType, closable: boolean | undefined, key: string, buttons?: Array, description?: string | React.ReactNode, duration?: number, onClose?: () => void): import("@opensumi/ide-core-browser").CancelablePromise | undefined; close(key: string): void; update(key: string, message: string | React.ReactNode): void; notification: import("@opensumi/ide-components/lib/notification/notification").NotificationApi; PopoverTriggerType: typeof import("@opensumi/ide-components/lib/popover").PopoverTriggerType; PopoverPosition: typeof import("@opensumi/ide-components/lib/popover").PopoverPosition; Popover: React.FC; message: { success: (content: string | React.ReactNode, duration?: number) => Promise; error: (content: string | React.ReactNode, duration?: number) => Promise; info: (content: string | React.ReactNode, duration?: number) => Promise; warning: (content: string | React.ReactNode, duration?: number) => Promise; loading: (content: string | React.ReactNode, duration?: number) => Promise; }; Tooltip: React.FC<{ title: string; delay?: number; children?: React.ReactNode; }>; RECYCLE_LIST_STABILIZATION_TIME: 500; RECYCLE_LIST_OVER_SCAN_COUNT: 50; RecycleList: React.FC; }; //# sourceMappingURL=index.d.ts.map