import { typescriptFileProvider } from '@baseplate-dev/core-generators';
import { reactErrorImportsProvider } from '@baseplate-dev/react-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
import { AUTH0_AUTH0_HOOKS_PATHS } from './template-paths.js';
import { AUTH0_AUTH0_HOOKS_TEMPLATES } from './typed-templates.js';
const auth0Auth0HooksRenderers = createProviderType('auth0-auth0-hooks-renderers');
const auth0Auth0HooksRenderersTask = createGeneratorTask({
    dependencies: {
        paths: AUTH0_AUTH0_HOOKS_PATHS.provider,
        reactErrorImports: reactErrorImportsProvider,
        typescriptFile: typescriptFileProvider,
    },
    exports: { auth0Auth0HooksRenderers: auth0Auth0HooksRenderers.export() },
    run({ paths, reactErrorImports, typescriptFile }) {
        return {
            providers: {
                auth0Auth0HooksRenderers: {
                    hooksGroup: {
                        render: (options) => typescriptFile.renderTemplateGroup({
                            group: AUTH0_AUTH0_HOOKS_TEMPLATES.hooksGroup,
                            paths,
                            importMapProviders: {
                                reactErrorImports,
                            },
                            generatorPaths: paths,
                            ...options,
                        }),
                    },
                },
            },
        };
    },
});
export const AUTH0_AUTH0_HOOKS_RENDERERS = {
    provider: auth0Auth0HooksRenderers,
    task: auth0Auth0HooksRenderersTask,
};
//# sourceMappingURL=template-renderers.js.map