/**
 * Insights + Preferences API routes
 *
 * Per-user AI insights and home screen preferences.
 */
import type { FastifyInstance } from 'fastify';
import type { WorkspaceManager } from '../../core/workspace-manager.js';
import { AuthService } from '../../services/auth-service.js';
import type { WsHub } from '../ws-hub.js';
import type { ChatSessionService } from '../../services/chat-session-service.js';
/** Slugify a free-text task title into a filesystem-safe entity id. */
export declare function slugifyTitle(title: string): string;
/** A person/repo id is a kebab/alphanumeric slug — no path, spaces, or dots. */
export declare function isValidSlug(s: string): boolean;
/** True when a repo-relative folder path contains a traversal segment — the
 *  guard for the capture surface's folder override before it reaches the graph. */
export declare function isUnsafeFolderPath(folderPath: string): boolean;
export declare function registerInsightsApiRoutes(fastify: FastifyInstance, workspaceManager: WorkspaceManager, authService: AuthService, workspacePath: string, wsHub?: WsHub | null, chatSessionService?: ChatSessionService | null): Promise<void>;
