import { createTsImportMap, createTsImportMapSchema, packageScope, } from '@baseplate-dev/core-generators';
import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
import { REACT_UPLOAD_COMPONENTS_PATHS } from './template-paths.js';
const uploadComponentsImportsSchema = createTsImportMapSchema({
    FileInput: { exportedAs: 'default' },
    FileInputField: {},
    FileInputFieldController: {},
    useUpload: {},
});
export const uploadComponentsImportsProvider = createReadOnlyProviderType('upload-components-imports');
const reactUploadComponentsImportsTask = createGeneratorTask({
    dependencies: {
        paths: REACT_UPLOAD_COMPONENTS_PATHS.provider,
    },
    exports: {
        uploadComponentsImports: uploadComponentsImportsProvider.export(packageScope),
    },
    run({ paths }) {
        return {
            providers: {
                uploadComponentsImports: createTsImportMap(uploadComponentsImportsSchema, {
                    FileInput: paths.fileInputComponent,
                    FileInputField: paths.fileInputField,
                    FileInputFieldController: paths.fileInputField,
                    useUpload: paths.hooksUseUpload,
                }),
            },
        };
    },
});
export const REACT_UPLOAD_COMPONENTS_IMPORTS = {
    task: reactUploadComponentsImportsTask,
};
//# sourceMappingURL=ts-import-providers.js.map