export interface SubjectErrorOptions { message: string; code?: string; field?: string; row?: any; } export declare class SubjectError extends Error { code: string; field?: string | undefined; row?: any | undefined; constructor(message: string, code?: string, field?: string | undefined, row?: any | undefined); static from(options: SubjectErrorOptions): SubjectError; } export declare function trimText(value: unknown): string; export declare function trimCommaSeparatedText(value: unknown): string; export interface TagItem { tagId: string | number; tagName: string; knowledgePointInfos?: KnowledgePointInfo[]; } export interface KnowledgePointInfo { knowledgePointId: string | number; knowledgePointName: string; } export interface Category { categoryId: string | number; title: string; } export interface SearchResult { id: string | number; title: string; value: string; [key: string]: any; } export interface Resource { resourceType: 1 | 2; resource: { url?: string; middle?: string; videoId?: string; [key: string]: any; }; }