import React from 'react';
import { CrossDatasetReferenceSchemaType } from '@sanity/types';
import { Observable } from 'rxjs';
import { CrossDatasetReferenceInfo } from './types';
/**
 * Used to preview a referenced type
 * Takes as props the referenced document, the reference type and a hook to subscribe to
 * in order to listen for the reference info
 * @param props
 * @constructor
 */
export declare function OptionPreview(props: {
    document: {
        _id: string;
        _type: string;
    };
    referenceType: CrossDatasetReferenceSchemaType;
    getReferenceInfo: (doc: {
        _id: string;
        _type: string;
    }) => Observable<CrossDatasetReferenceInfo>;
}): React.JSX.Element;
//# sourceMappingURL=OptionPreview.d.ts.map