import React from 'react';
export type BrowserItem = {
    id: string;
    title: string;
    site: string;
    url: string;
    icon?: string;
    description?: string;
    canLocate?: boolean;
};
export type BrowserSuggestion = {
    id: string;
    label: string;
    count: number;
};
export declare const RESULT_COUNT_TAG_STYLE: React.CSSProperties;
export declare const SUGGESTION_ITEM_STYLE: React.CSSProperties;
export interface BrowserItemProps {
    item: BrowserItem;
    itemStyle?: React.CSSProperties;
    className?: string;
    onLocate?: (item: BrowserItem) => void;
}
export declare const BrowserItemComponent: React.FC<BrowserItemProps>;
export interface BrowserHeaderProps {
    activeLabel: string;
    onBack?: () => void;
}
export declare const BrowserHeader: React.FC<BrowserHeaderProps>;
export interface BrowserListProps {
    items: BrowserItem[];
    activeLabel: string;
    onBack?: () => void;
    customHeader?: React.ReactNode;
    showHeader?: boolean;
    countFormatter?: (count: number) => string;
    emptyText?: string;
    loading?: boolean;
    loadingText?: string;
    onLocate?: (item: BrowserItem) => void;
}
export declare const BrowserList: React.FC<BrowserListProps>;
export type BrowserProps = {
    /**
     * 搜索建议列表
     */
    suggestions: BrowserSuggestion[];
    /**
     * 根据选中的搜索建议请求对应的结果列表
     */
    request: (suggestion: BrowserSuggestion) => {
        items: BrowserItem[];
        loading?: boolean;
    };
    suggestionIcon?: React.ReactNode;
    countFormatter?: (count: number) => string;
    emptyText?: string;
    loadingText?: string;
    onLocate?: (item: BrowserItem) => void;
};
declare const Browser: React.FC<BrowserProps>;
export default Browser;
