import { Entity, EntityReference, FilterValues } from "../types";
import { PreviewSize } from "../preview";
export type ReferenceWidgetProps<M extends Record<string, any>> = {
    name?: string;
    multiselect?: boolean;
    value: EntityReference | EntityReference[] | null;
    onReferenceSelected?: (params: {
        reference: EntityReference | null;
        entity: Entity<M> | null;
    }) => void;
    onMultipleReferenceSelected?: (params: {
        references: EntityReference[] | null;
        entities: Entity<M>[] | null;
    }) => void;
    path: string;
    disabled?: boolean;
    previewProperties?: string[];
    /**
     * Allow selection of entities that pass the given filter only.
     */
    forceFilter?: FilterValues<string>;
    size: PreviewSize;
    className?: string;
    includeId?: boolean;
    includeEntityLink?: boolean;
};
/**
 * This field allows selecting reference/s.
 */
export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className, includeId, includeEntityLink }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
