///
export interface ChildRenderContextProps {
collectChildData?: (id: string, data: any) => void;
collectChildren?: (id: string, children: any) => void;
update?: () => void;
getCurrentData?: (id: string) => {
currentIndex: number;
props: any;
};
parentProps?: any;
}
export declare const ChildRenderProvider: import("react").Provider;
export declare const useChildRenderContext: () => ChildRenderContextProps;
export declare const useChildRender: () => {
childRef: import("react").MutableRefObject<{
list: string[];
data: Map;
renderChild: Map;
props: Map;
parentProps: any;
}>;
collectComplete: boolean;
resetList: (list: string[]) => void;
renderChildren: () => any[] | null;
addChildProps: (id: string, data: any) => void;
addParentProps: (_props: any) => void;
context: {
collectChildData: (id: string, data: any) => void;
getCurrentData: (id: string) => {
currentIndex: number;
props: any;
};
collectChildren: (id: string, child: {
current: any;
}) => void;
update(): void;
readonly parentProps: any;
};
};