// security/index.ts — SPEC-058b Section G
// Public API: re-exports all security generator functions and
// implements generateSecurityTestFiles() as the main entry point.
import { detectAuth, detectFileUpload, hasPublicApi } from './detectors.js';
import { buildTsSecurityTest } from './ts-scaffold.js';
import { buildPythonSecurityTest } from './python-scaffold.js';
export { detectAuth, detectFileUpload, hasPublicApi, isSecurityTestProject } from './detectors.js';
export { generateSecurityTestDefs } from './test-defs.js';
export function generateSecurityTestFiles(spec, testDir, framework, language, testExt, autoGenerate, knowledge) {
    const auth = detectAuth(knowledge);
    const upload = detectFileUpload(knowledge);
    const publicApi = hasPublicApi(knowledge);
    const isPython = language === 'python';
    const ext = isPython ? 'py' : testExt;
    const fw = isPython ? 'pytest' : framework;
    const content = isPython
        ? buildPythonSecurityTest(spec.title, auth, upload, publicApi)
        : buildTsSecurityTest(spec.title, auth, upload, publicApi);
    return [
        {
            path: `${testDir}/security/${spec.slug}.security.test.${ext}`,
            framework: fw,
            content,
            ready: autoGenerate,
        },
    ];
}
//# sourceMappingURL=index.js.map