/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { ButtonProps } from 'antd';
import React from 'react';
import { SchemaInitializer } from '../SchemaInitializer';
import { SchemaInitializerOptions } from '../types';
export declare function useSchemaInitializerRender<P1 = ButtonProps, P2 = {}>(name: string | SchemaInitializer<P1, P2>, options?: Omit<SchemaInitializerOptions<P1, P2>, 'name'>): {
    exists: boolean;
    render: () => any;
} | {
    exists: boolean;
    render: (props?: Omit<SchemaInitializerOptions<P1, P2>, 'name'>) => React.FunctionComponentElement<SchemaInitializerOptions<any, any>>;
};
