import type { Collection, Config, Entry, EntryData, Field, InferredField } from '@staticcms/core/interface';
import type { ReactNode } from 'react';
/**
 * Returns the widget component for a named field, and makes recursive calls
 * to retrieve components for nested and deeply nested fields, which occur in
 * object and list type fields. Used internally to retrieve widgets, and also
 * exposed for use in custom preview templates.
 */
export default function getWidgetFor(config: Config, collection: Collection, name: string, fields: Field[], entry: Entry, theme: 'dark' | 'light', inferredFields: Record<string, InferredField>, widgetFields?: Field[], values?: EntryData, idx?: number | null): ReactNode;
