import type { EntityId } from './entity.js';
import type { Term } from './terms.js';
import type { Title } from '../helpers/parse_responses.js';
import type { WikimediaLanguageCode } from '../helpers/wikimedia_constants.js';
export interface SearchResult {
    id: EntityId;
    title: Title;
    pageid: number;
    concepturi: string;
    repository: string;
    url: string;
    display: {
        label: Term;
        description: Term;
    };
    label: string;
    description?: string;
    aliases?: string[];
    match: {
        type: 'label' | 'description' | 'alias';
        language: WikimediaLanguageCode;
        text: string;
    };
}
export interface SearchResponse {
    search: SearchResult[];
    'search-continue': number;
    searchinfo: {
        search: string;
    };
    success: number;
    error?: {
        code: string;
        info: string;
        '*': string;
    };
    servedby: string;
}
//# sourceMappingURL=search.d.ts.map