/** * Feedback Command Types * * Type definitions for the feedback CLI command. */ /** * Feedback command options from Commander */ export interface FeedbackOptions { /** Output as JSON */ json?: boolean; /** Output as TOON format */ toon?: boolean; /** Filter by category */ category?: FeedbackCategory; /** Limit number of results */ limit?: string; } /** * Valid feedback categories */ export type FeedbackCategory = 'bug' | 'feature_request' | 'usability' | 'documentation' | 'performance'; /** * All valid feedback categories */ export declare const VALID_CATEGORIES: FeedbackCategory[]; /** * Valid feedback severity levels */ export type FeedbackSeverity = 'critical' | 'high' | 'medium' | 'low'; /** * All valid severity levels */ export declare const VALID_SEVERITIES: FeedbackSeverity[]; /** * Feedback index entry for display */ export interface FeedbackListEntry { /** Unique feedback ID */ id: string; /** Feedback category */ category: FeedbackCategory; /** Severity level */ severity: FeedbackSeverity; /** Brief summary */ summary: string; /** Related tool (optional) */ tool?: string; /** Creation timestamp */ createdAt: string; } /** * Feedback list response */ export interface FeedbackListResponse { /** Array of feedback entries */ entries: FeedbackListEntry[]; /** Total count */ total: number; /** Filtered count */ filtered: number; /** Applied filters */ filters?: { category?: string; }; } /** * Table column configuration */ export interface FeedbackTableColumn { /** Column header */ header: string; /** Column width */ width?: number; /** Alignment */ align?: 'left' | 'right' | 'center'; } /** * Default table columns for feedback */ export declare const FEEDBACK_TABLE_COLUMNS: FeedbackTableColumn[]; /** * Category display colors (chalk color names) */ export declare const CATEGORY_COLORS: Record; /** * Severity display colors (chalk color names) */ export declare const SEVERITY_COLORS: Record; /** * Maximum summary length for table display */ export declare const MAX_SUMMARY_LENGTH = 38; /** * Validate category filter * * @param category Category to validate * @returns True if valid category */ export declare function isValidCategory(category: string): category is FeedbackCategory; /** * Truncate summary if too long for display * * @param summary Feedback summary * @param maxLength Maximum length (default: MAX_SUMMARY_LENGTH) * @returns Truncated summary with ellipsis if needed */ export declare function truncateSummary(summary: string, maxLength?: number): string; /** * Format feedback ID for display (shorter version) * * @param id Full feedback ID * @returns Shortened ID for display */ export declare function formatFeedbackId(id: string): string; //# sourceMappingURL=feedback.types.d.ts.map