import { MapSearchConfig, SearchResult, SearchErrorCode } from '../types';
import { MapSearchError } from '../services/searchService';

interface Props {
    config: MapSearchConfig;
}
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
    config: () => {
        enabled: boolean;
        position: string;
        placeholder: string;
        provider: string;
        maxResults: number;
        showHistory: boolean;
        enableStorage: boolean;
        searchDelay: number;
        minSearchLength: number;
        messages: {
            historyTitle: string;
            clearHistory: string;
            resultsTitle: string;
        };
    };
}>>, {
    updateResults: (results: SearchResult[]) => void;
    clearResults: () => void;
    focus: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
    search: (query: string) => void;
    select: (result: SearchResult) => void;
    clear: () => void;
    "search-error": (error: MapSearchError) => void;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
    config: () => {
        enabled: boolean;
        position: string;
        placeholder: string;
        provider: string;
        maxResults: number;
        showHistory: boolean;
        enableStorage: boolean;
        searchDelay: number;
        minSearchLength: number;
        messages: {
            historyTitle: string;
            clearHistory: string;
            resultsTitle: string;
        };
    };
}>>> & Readonly<{
    onSearch?: (query: string) => any;
    onSelect?: (result: SearchResult) => any;
    onClear?: () => any;
    "onSearch-error"?: (error: MapSearchError) => any;
}>, {
    config: MapSearchConfig;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
    prepend?(_: {}): any;
    "search-input"?(_: {
        searchQuery: string;
        placeholder: string;
        isLoading: boolean;
        handleSearchInput: (value: string) => void;
        handleSearchFocus: () => void;
        handleSearchBlur: () => void;
        handleSearchEnter: () => void;
        handleKeyUp: () => void;
        handleKeyDown: () => void;
        handleEscape: () => void;
    }): any;
    "input-prefix"?(_: {}): any;
    "input-suffix"?(_: {
        isLoading: boolean;
    }): any;
    "search-results"?(_: {
        searchResults: {
            id: string;
            name: string;
            title?: string;
            address: string;
            location: [number, number];
            type?: string;
            district?: string;
            city?: string;
            province?: string;
            adcode?: string;
            bounds?: [number, number, number, number];
            category?: string;
            distance?: string | number;
            confidence?: number;
            provider?: import('../types').SearchProvider;
            raw?: any;
        }[];
        searchHistory: {
            id: string;
            name: string;
            title?: string;
            address: string;
            location: [number, number];
            type?: string;
            district?: string;
            city?: string;
            province?: string;
            adcode?: string;
            bounds?: [number, number, number, number];
            category?: string;
            distance?: string | number;
            confidence?: number;
            provider?: import('../types').SearchProvider;
            raw?: any;
        }[];
        searchQuery: string;
        showHistory: boolean;
        selectedIndex: number;
        selectResult: (result: SearchResult) => void;
        selectHistoryItem: (item: SearchResult) => void;
        clearHistory: () => void;
        highlightText: (text: string, query: string) => string;
    }): any;
    "history-title"?(_: {
        clearHistory: () => void;
    }): any;
    "history-item"?(_: {
        key: string;
        item: {
            id: string;
            name: string;
            title?: string;
            address: string;
            location: [number, number];
            type?: string;
            district?: string;
            city?: string;
            province?: string;
            adcode?: string;
            bounds?: [number, number, number, number];
            category?: string;
            distance?: string | number;
            confidence?: number;
            provider?: import('../types').SearchProvider;
            raw?: any;
        };
        index: number;
        isActive: boolean;
        selectHistoryItem: (item: SearchResult) => void;
    }): any;
    "results-title"?(_: {
        searchQuery: string;
        resultsCount: number;
    }): any;
    "result-item"?(_: {
        key: string;
        result: {
            id: string;
            name: string;
            title?: string;
            address: string;
            location: [number, number];
            type?: string;
            district?: string;
            city?: string;
            province?: string;
            adcode?: string;
            bounds?: [number, number, number, number];
            category?: string;
            distance?: string | number;
            confidence?: number;
            provider?: import('../types').SearchProvider;
            raw?: any;
        };
        index: number;
        isActive: boolean;
        selectResult: (result: SearchResult) => void;
        highlightText: (text: string, query: string) => string;
        searchQuery: string;
    }): any;
    "search-error"?(_: {
        searchQuery: string;
        errorMessage: string;
        errorCode: "" | SearchErrorCode;
        isLoading: boolean;
    }): any;
    "no-results"?(_: {
        searchQuery: string;
        searchResults: {
            id: string;
            name: string;
            title?: string;
            address: string;
            location: [number, number];
            type?: string;
            district?: string;
            city?: string;
            province?: string;
            adcode?: string;
            bounds?: [number, number, number, number];
            category?: string;
            distance?: string | number;
            confidence?: number;
            provider?: import('../types').SearchProvider;
            raw?: any;
        }[];
        isLoading: boolean;
    }): any;
    append?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
    [K in keyof T]-?: {} extends Pick<T, K> ? {
        type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
    } : {
        type: import('vue').PropType<T[K]>;
        required: true;
    };
};
type __VLS_WithDefaults<P, D> = {
    [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
        default: D[K];
    }> : P[K];
};
type __VLS_Prettify<T> = {
    [K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};
//# sourceMappingURL=OlMapSearch.vue.d.ts.map