import React from 'react';
import { ComponentPool, TemplateItem } from './InflatorRepository';
import { TemplateValue } from './TemplateValue';
declare type Nullable = undefined | null;
declare type Primitive = string | number | boolean | symbol;
declare type Builtin = Function | Date | Error | RegExp;
interface WithTemplateArray
extends Array> {
}
declare type WithTemplateObject = {
[K in keyof T]: WithTemplateValue;
};
declare type WithTemplateValue = T extends Builtin | Nullable ? T : T extends Primitive ? T | TemplateValue : T extends Array ? WithTemplateArray : T extends {} ? WithTemplateObject : T;
declare type NonTemplateProps = 'key' | 'ref';
export declare type TemplateProps = {
[key in keyof T]: key extends NonTemplateProps ? T[key] : WithTemplateValue;
};
export interface TemplateComponent> extends React.FC>> {
}
export declare function createTemplateComponent>(Component: T, addProps?: (templateItem: TemplateItem, props: any, inflatorId: string, pool: ComponentPool, rootValue: any) => void): TemplateComponent;
export {};
//# sourceMappingURL=createTemplateComponent.d.ts.map