import { ArgumentMetadata } from '@nestjs/common';
import { TransactionalRepository } from '../transactional.repository';
import { EntitySchema } from 'typeorm';
/** Checks if entity exists with given id. Throws not found expection if it doesn't */
export declare function EntityExistsPipe<T>(EntityClass: Function | EntitySchema<T>, cacheOptions?: {
    /** Number of milliseconds to keep the found record in the cache */
    ttl?: number;
    /** Whether to expire the record after first retrieval */
    once?: boolean;
}): {
    new (repository: TransactionalRepository<any>): {
        repository: TransactionalRepository<any>;
        transform(value: any, metadata: ArgumentMetadata): Promise<any>;
    };
};
