/** * Stories Database Module * * CRUD operations for analytic stories (Splunk ESCU stories). */ import type { AnalyticStory } from '../types.js'; /** * Insert or replace a story in the database. */ export declare function insertStory(story: AnalyticStory): void; /** * Get a story by its name. */ export declare function getStoryByName(name: string): AnalyticStory | null; /** * Get a story by its ID. */ export declare function getStoryById(id: string): AnalyticStory | null; /** * Get the total count of stories. */ export declare function getStoryCount(): number; /** * Full-text search across stories. */ export declare function searchStories(query: string, limit?: number): AnalyticStory[]; /** * List stories with pagination. */ export declare function listStories(limit?: number, offset?: number): AnalyticStory[]; /** * List stories filtered by category. */ export declare function listStoriesByCategory(category: string, limit?: number, offset?: number): AnalyticStory[];