import { typescriptFileProvider } from '@baseplate-dev/core-generators';
import { graphqlImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
import { reactSessionImportsProvider } from '#src/local-auth/core/generators/react-session/generated/ts-import-providers.js';
import { LOCAL_AUTH_CORE_AUTH_HOOKS_PATHS } from './template-paths.js';
import { LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES } from './typed-templates.js';
const localAuthCoreAuthHooksRenderers = createProviderType('local-auth-core-auth-hooks-renderers');
const localAuthCoreAuthHooksRenderersTask = createGeneratorTask({
    dependencies: {
        graphqlImports: graphqlImportsProvider,
        paths: LOCAL_AUTH_CORE_AUTH_HOOKS_PATHS.provider,
        reactErrorImports: reactErrorImportsProvider,
        reactSessionImports: reactSessionImportsProvider,
        typescriptFile: typescriptFileProvider,
    },
    exports: {
        localAuthCoreAuthHooksRenderers: localAuthCoreAuthHooksRenderers.export(),
    },
    run({ graphqlImports, paths, reactErrorImports, reactSessionImports, typescriptFile, }) {
        return {
            providers: {
                localAuthCoreAuthHooksRenderers: {
                    hooksGroup: {
                        render: (options) => typescriptFile.renderTemplateGroup({
                            group: LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGroup,
                            paths,
                            importMapProviders: {
                                graphqlImports,
                                reactErrorImports,
                                reactSessionImports,
                            },
                            generatorPaths: paths,
                            ...options,
                        }),
                    },
                },
            },
        };
    },
});
export const LOCAL_AUTH_CORE_AUTH_HOOKS_RENDERERS = {
    provider: localAuthCoreAuthHooksRenderers,
    task: localAuthCoreAuthHooksRenderersTask,
};
//# sourceMappingURL=template-renderers.js.map