import React from 'react'; import { App } from 'antd'; import zhCN from 'antd/locale/zh_CN'; import type { FeedbackInstance } from '../feedback'; type AntdAppInstance = ReturnType; export interface FanContextValue extends Partial> { modal?: FeedbackInstance['modal']; locale?: typeof zhCN; [key: string]: any; } declare const FanDefaultConfig: FanContextValue; declare const FanContext: React.Context; export interface FanProviderProps { children?: React.ReactNode; value?: FanContextValue; } interface FanContextProviderProps extends FanProviderProps { app: AntdAppInstance; } declare const FanProvider: (props: FanProviderProps) => React.FunctionComponentElement | React.FunctionComponentElement & React.RefAttributes>; export { FanContext, FanProvider, FanDefaultConfig, };