import type { Key, VueNode } from '@antdv/pro-utils'; import type { ImageProps } from 'ant-design-vue'; import type { AnchorHTMLAttributes } from 'vue'; interface ProHelpDataSourceContentType { h1: string; h2: string; link: { content: string; } & AnchorHTMLAttributes; inlineLink: { content: string; } & AnchorHTMLAttributes; navigationSwitch: { selectKey: string; content: string; }; text: string; image: ImageProps; html: { className: string; content: string; }; } type ProHelpDataSourceChildrenType = Extract; type ProHelpDataSourceContentProps = ValueType extends ProHelpDataSourceChildrenType ? ProHelpDataSourceContentType[ValueType] : ValueType extends keyof ValueTypeMap ? ValueTypeMap[ValueType] : ProHelpDataSourceContentType[ProHelpDataSourceChildrenType]; export interface ProHelpDataSourceChildren { valueType: ValueTypeMap extends Map ? ValueType : keyof ValueTypeMap | ProHelpDataSourceChildrenType; valueChildren: ProHelpDataSourceContentProps; } export interface ProHelpDataSource { key: string; title: string; infiniteScrollFull?: boolean; children: Array<{ key: string; title: string; asyncLoad?: boolean; children?: Array>; }>; } interface ProHelpProvideProps { dataSource?: Array>; valueTypeMap?: Map, index: number) => VueNode>; onLoadContext?: (key: Key, context: ProHelpDataSource['children'][number]) => Promise>>; } export declare const ProHelpContext: { Provider: import("vue").DefineComponent; required: true; }; }>, () => import("vue").VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; required: true; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; useContext: () => ProHelpProvideProps; }; export {};