import { ReferenceFilterSearchOptions, ReferenceSchemaType } from '@sanity/types';
import { Observable } from 'rxjs';
import { ReferenceInfo } from '../../../inputs/ReferenceInput/types';
/**
 * Takes an id and a reference schema type, returns metadata about it
 * @param id
 * @param referenceType
 */
export declare function getReferenceInfo(id: string, referenceType: ReferenceSchemaType): Observable<ReferenceInfo>;
interface SearchHit {
    id: string;
    type: string;
    draft?: {
        _id: string;
        _type: string;
    };
    published?: {
        _id: string;
        _type: string;
    };
}
export declare function search(textTerm: string, type: ReferenceSchemaType, options: ReferenceFilterSearchOptions): Observable<SearchHit[]>;
export {};
//# sourceMappingURL=reference.d.ts.map