"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const router = (0, express_1.Router)();
// Cost
router.get('/cost/models', (_req, res) => {
    res.json({ models: [] });
});
router.post('/cost/models', (req, res) => {
    const { modelId, name } = req.body;
    if (!modelId || !name) {
        res.status(400).json({ error: 'modelId and name required' });
        return;
    }
    res.json({ registered: true });
});
router.post('/cost/route', (req, res) => {
    const { taskType } = req.body;
    if (!taskType) {
        res.status(400).json({ error: 'taskType required' });
        return;
    }
    res.json({ model: 'default', reason: 'no models registered' });
});
router.post('/cost/route/smart', (req, res) => {
    res.json({ model: 'default', reason: 'smart routing not configured' });
});
router.post('/cost/log', (req, res) => {
    const { modelId, tokens } = req.body;
    if (!modelId || !tokens) {
        res.status(400).json({ error: 'modelId and tokens required' });
        return;
    }
    res.json({ logged: true });
});
router.get('/cost/stats', (_req, res) => {
    res.json({ totalCalls: 0, totalTokens: 0, totalCost: 0 });
});
router.delete('/cost/clear', (_req, res) => {
    res.json({ cleared: true });
});
router.post('/cost/benchmark', (req, res) => {
    res.json({ success: true });
});
router.get('/cost/benchmark/best', (req, res) => {
    res.json({ message: 'insufficient data' });
});
router.get('/cost/benchmark/stats', (_req, res) => {
    res.json({ benchmarks: [] });
});
// Models
router.get('/models/insights', (req, res) => {
    res.json({ models: [] });
});
router.get('/models/compare', (_req, res) => {
    res.json({ models: [] });
});
// Streaming
router.get('/streaming/status', (_req, res) => {
    res.json({ connected: false, pendingBatch: 0, enabled: false });
});
router.post('/streaming/start', (_req, res) => {
    res.json({ status: 'started' });
});
router.post('/streaming/stop', (_req, res) => {
    res.json({ status: 'stopped' });
});
// Sync
router.get('/sync/queue-status', (_req, res) => {
    res.json({ pending: 0, lastFlush: null });
});
exports.default = router;
//# sourceMappingURL=cost.js.map