import { DataSource } from 'typeorm';
import { BaseAuthProvider } from './base-auth.provider';
import { NestAuthUser } from '../../user/entities/user.entity';
import { NestAuthIdentity } from '../../user/entities/identity.entity';
export declare class EmailAuthProvider extends BaseAuthProvider {
    readonly dataSource: DataSource;
    providerName: string;
    constructor(dataSource: DataSource);
    private normalizeEmail;
    findIdentity(providerUserId: string): Promise<NestAuthIdentity | null>;
    linkToUser(userId: string, providerUserId: string, metadata?: Record<string, any>): Promise<void>;
    validate(credentials: {
        email?: string;
        password?: string;
    }): Promise<{
        userId: string;
        email: string;
        metadata: NestAuthUser;
    }>;
    getRequiredFields(): string[];
}
//# sourceMappingURL=email-auth.provider.d.ts.map