import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
import { z } from 'zod';
import { PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
const descriptorSchema = z.object({});
/**
 * Placeholder generator for auth hooks.
 *
 * Useful for creating a test auth implementation.
 */
export const placeholderAuthHooksGenerator = createGenerator({
    name: 'placeholder-auth/core/placeholder-auth-hooks',
    generatorFileUrl: import.meta.url,
    descriptorSchema,
    buildTasks: () => ({
        paths: GENERATED_TEMPLATES.paths.task,
        imports: GENERATED_TEMPLATES.imports.task,
        renderers: GENERATED_TEMPLATES.renderers.task,
        main: createGeneratorTask({
            dependencies: {
                renderers: GENERATED_TEMPLATES.renderers.provider,
            },
            run({ renderers }) {
                return {
                    build: async (builder) => {
                        await builder.apply(renderers.hooksGroup.render({}));
                    },
                };
            },
        }),
    }),
});
//# sourceMappingURL=placeholder-auth-hooks.generator.js.map