export const tokenUsageRoutes = async (fastify, opts) => {
    const { summarizeTokenUsage, presenter } = opts;
    fastify.get('/api/token-usage/summary', async (request, reply) => {
        const { projectPath, since } = request.query;
        if (!projectPath) {
            reply.code(400);
            return { error: 'projectPath query parameter is required' };
        }
        const summary = await summarizeTokenUsage.execute({ localPath: projectPath, since });
        return presenter.present(summary);
    });
};
//# sourceMappingURL=tokenUsage.routes.js.map