/**
 * Browser Bookmark Import Service
 *
 * Parses Netscape Bookmark File format (exported from Chrome, Firefox, Safari, Edge, Arc, Brave)
 * and creates `reference` entities. Deterministic — no LLM needed.
 */
import type { BaseGraphManager } from '../core/graph.js';
import type { GitUser } from './git.js';
export interface ParsedBookmark {
    title: string;
    url: string;
    addDate?: number;
    description?: string;
    tags?: string[];
    folderPath: string[];
}
export interface ImportBookmarksResult {
    created: number;
    skipped: number;
    errors: string[];
    results: Array<{
        entityId: string;
        title: string;
        status: 'created' | 'skipped' | 'error';
        error?: string;
    }>;
}
/**
 * Detect whether an HTML string is a Netscape Bookmark File.
 */
export declare function isNetscapeBookmarkFile(html: string): boolean;
/**
 * Parse a Netscape Bookmark File into structured bookmark data.
 * Walks <DT>, <A>, <H3>, <DL>, </DL>, <DD> tags via regex.
 */
export declare function parseNetscapeBookmarks(html: string): ParsedBookmark[];
/**
 * Convert a parsed bookmark to reference entity data.
 */
export declare function bookmarkToReference(bookmark: ParsedBookmark, userId?: string): {
    entityId: string;
    data: Record<string, any>;
    content: string;
};
/**
 * Import bookmarks into a graph as reference entities.
 * Deduplicates by URL against existing references.
 */
export declare function importBookmarks(graph: BaseGraphManager, html: string, user?: GitUser): Promise<ImportBookmarksResult>;
