import { ContentType } from "~/types";
export type Language = "zh" | "en" | "ja" | "ko" | "fr" | "de" | "es";
export interface MessageTypeDetector {
    keywords?: string[];
    patterns: RegExp[];
    priority: number;
    type: ContentType;
}
export interface I18nPatterns {
    [key: string]: {
        keywords?: string[];
        patterns: RegExp[];
    };
}
export declare const backendToFrontendMapping: Record<string, ContentType>;
export declare class MessageTypeDetectorService {
    private detectors;
    private language;
    private cache;
    private maxCacheSize;
    constructor(language?: Language);
    setLanguage(language: Language): void;
    private initializeDetectors;
    mapBackendType(backendType?: string): ContentType | undefined;
    detectMessageType(content?: string): ContentType;
    private addToCache;
    clearCache(): void;
    addCustomDetector(detector: MessageTypeDetector): void;
    removeCustomDetector(type: ContentType): void;
}
export declare const messageTypeDetector: MessageTypeDetectorService;
export declare function detectMessageType(content?: string, language?: Language): ContentType;
export declare function mapBackendType(backendType?: string): ContentType | undefined;
