/**
 * 국립국어원 표준국어대사전 API 타입 정의
 */
export interface DictionarySearchParams {
    key: string;
    q: string;
    req_type?: 'xml' | 'json';
    start?: number;
    num?: number;
    advanced?: 'y' | 'n';
    target?: number;
    method?: 'exact' | 'include' | 'start' | 'end' | 'wildcard';
    type1?: string;
    type2?: string;
    pos?: string;
}
export interface DictionaryViewParams {
    key: string;
    method: 'word_info' | 'target_code';
    req_type?: 'xml' | 'json';
    q: string;
}
export interface DictionarySearchResponse {
    channel: {
        title: string;
        link: string;
        description: string;
        lastbuilddate: string;
        total: number;
        start: number;
        num: number;
        item: DictionaryItem[];
    };
}
export interface DictionaryItem {
    target_code: number;
    word: string;
    sup_no?: number;
    pos?: string;
    sense: Sense | Sense[];
}
export interface Sense {
    definition: string;
    link: string;
    type?: string;
}
export interface ApiError {
    code: string;
    message: string;
}
export interface AppConfig {
    koreandict: {
        apiKey: string;
        baseUrl: string;
    };
}
