import { z } from 'zod';
import { handleExportSpec } from './export-spec.js';
import { safeLicensed } from './safe-handler.js';
export function registerExportTools(server) {
    server.registerTool('export_spec', {
        description: 'Export a spec to an external format. Currently supports spec-kit format ' +
            '(GitHub spec-kit compatible: spec.md, plan.md, tasks.md). ' +
            'Writes files to .specify/specs/{slug}/ by default.',
        annotations: { readOnlyHint: false },
        inputSchema: {
            specId: z.string().max(500).describe('Spec ID to export (e.g. "SPEC-001")'),
            projectPath: z.string().max(2000).describe('Absolute path to the project root'),
            format: z.enum(['spec-kit']).describe('Export format. Valid values: spec-kit'),
            outputDir: z
                .string()
                .max(2000)
                .optional()
                .describe('Custom output directory (default: .specify/specs/{slug}/ inside projectPath)'),
        },
    }, safeLicensed('export_spec', async (args) => handleExportSpec(args)));
}
//# sourceMappingURL=register-export-tools.js.map