import { createTsImportMap, createTsImportMapSchema, packageScope, } from '@baseplate-dev/core-generators';
import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
import { STRIPE_FASTIFY_STRIPE_PATHS } from './template-paths.js';
export const fastifyStripeImportsSchema = createTsImportMapSchema({
    stripe: {},
    stripeEventHandlers: {},
    stripeWebhookPlugin: {},
});
export const fastifyStripeImportsProvider = createReadOnlyProviderType('fastify-stripe-imports');
const stripeFastifyStripeImportsTask = createGeneratorTask({
    dependencies: {
        paths: STRIPE_FASTIFY_STRIPE_PATHS.provider,
    },
    exports: {
        fastifyStripeImports: fastifyStripeImportsProvider.export(packageScope),
    },
    run({ paths }) {
        return {
            providers: {
                fastifyStripeImports: createTsImportMap(fastifyStripeImportsSchema, {
                    stripe: paths.service,
                    stripeEventHandlers: paths.serviceEventHandlers,
                    stripeWebhookPlugin: paths.pluginsWebhook,
                }),
            },
        };
    },
});
export const STRIPE_FASTIFY_STRIPE_IMPORTS = {
    task: stripeFastifyStripeImportsTask,
};
//# sourceMappingURL=ts-import-providers.js.map