import { Schema } from 'mongoose';
import { IPolymorphicConsumer } from '../types';
/**
 *
 * @param options = {
      key: '_id',
      localKey: 'modelId',
      fromRef: 'modelType',
      toPath: 'content',
      withTimestamp: true,
    }
 * @returns
 */
export declare const polymorphicConsumer: (ops: IPolymorphicConsumer) => (schema: Schema) => Error | undefined;
