UNPKG

519 BTypeScriptView Raw
1import * as React from 'react';
2import type { ComponentsPropsList } from '../styles/props';
3declare function DefaultPropsProvider(props: React.PropsWithChildren<{
4 value: {
5 [P in keyof ComponentsPropsList]?: Partial<ComponentsPropsList[P]>;
6 };
7}>): React.JSX.Element;
8declare namespace DefaultPropsProvider {
9 var propTypes: any;
10}
11export default DefaultPropsProvider;
12export declare function useDefaultProps<Props extends Record<string, any>>(params: {
13 props: Props;
14 name: string;
15}): Props;