import * as sqlite3 from 'sqlite3'; import { BaseRepositoryImpl } from './base-repository'; /** * Importance score model for V-Dimension */ export interface ImportanceScore { id: string; plugin_id: string; dimension: 'X' | 'Y' | 'Z' | 'W' | 'T'; entity_id: string; pagerank_score: number; betweenness_score: number; combined_score: number; rank: number; created_at: Date; } /** * Repository for V-Dimension: Importance Scores */ export declare class ImportanceRepository extends BaseRepositoryImpl { constructor(db: sqlite3.Database); /** * Creates or updates an importance score. */ upsert(score: ImportanceScore): Promise; /** * Gets importance score for an entity. */ getByEntity(dimension: 'X' | 'Y' | 'Z' | 'W' | 'T', entityId: string, pluginId: string): Promise; /** * Gets all importance scores for a dimension, sorted by rank. */ getAllByDimension(dimension: 'X' | 'Y' | 'Z' | 'W' | 'T', pluginId: string): Promise; /** * Creates a new importance score. */ create(score: ImportanceScore): Promise; /** * Gets an importance score by ID. */ getById(id: string, pluginId: string): Promise; /** * Updates an existing importance score. */ update(score: ImportanceScore): Promise; /** * Deletes an importance score. */ delete(id: string, pluginId: string): Promise; /** * Gets all importance scores for a plugin. */ getAll(pluginId: string): Promise; /** * Checks if an importance score exists. */ exists(id: string, pluginId: string): Promise; /** * Maps a database row to an ImportanceScore object. */ private mapRowToScore; } //# sourceMappingURL=importance-repository.d.ts.map