import { createTsImportMap, createTsImportMapSchema, packageScope, } from '@baseplate-dev/core-generators';
import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_PATHS } from './template-paths.js';
export const authEmailPasswordImportsSchema = createTsImportMapSchema({
    authenticateUserWithEmailAndPassword: {},
    createUserWithEmailAndPassword: {},
    PASSWORD_MIN_LENGTH: {},
    registerUserWithEmailAndPassword: {},
});
export const authEmailPasswordImportsProvider = createReadOnlyProviderType('auth-email-password-imports');
const localAuthCoreAuthEmailPasswordImportsTask = createGeneratorTask({
    dependencies: {
        paths: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_PATHS.provider,
    },
    exports: {
        authEmailPasswordImports: authEmailPasswordImportsProvider.export(packageScope),
    },
    run({ paths }) {
        return {
            providers: {
                authEmailPasswordImports: createTsImportMap(authEmailPasswordImportsSchema, {
                    authenticateUserWithEmailAndPassword: paths.servicesUserPassword,
                    createUserWithEmailAndPassword: paths.servicesUserPassword,
                    PASSWORD_MIN_LENGTH: paths.constantsPassword,
                    registerUserWithEmailAndPassword: paths.servicesUserPassword,
                }),
            },
        };
    },
});
export const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_IMPORTS = {
    task: localAuthCoreAuthEmailPasswordImportsTask,
};
//# sourceMappingURL=ts-import-providers.js.map