import { CommonEntity } from '../../../entities/common.entity';
import { ComputedFieldMetadata } from '../../../helpers/solid-registry';
import { IEntityPreComputeFieldProvider } from '../../../interfaces';
import { EntityManager } from 'typeorm';
export interface AlphaNumExternalIdContext {
    prefix?: string;
    length?: number;
    dynamicFieldPrefix?: string;
}
export declare class AlphaNumExternalIdComputationProvider<T extends CommonEntity> implements IEntityPreComputeFieldProvider<T, AlphaNumExternalIdContext> {
    private readonly entityManager;
    constructor(entityManager: EntityManager);
    name(): string;
    help(): string;
    preComputeValue(triggerEntity: T, computedFieldMetadata: ComputedFieldMetadata<AlphaNumExternalIdContext>): Promise<void>;
    private generateRandomCode;
    private isExternalIdUnique;
    private generateUniqueExternalId;
}
//# sourceMappingURL=alpha-num-external-id-computed-field-provider.d.ts.map