import { ConnectionHandler } from "./ConnectionHandler"; import { Registry } from "tc-shared/events"; export interface BookmarkEvents { notify_bookmarks_updated: {}; } export declare const bookmarkEvents: Registry; export declare const boorkmak_connect: (mark: Bookmark, new_tab?: boolean) => void; export interface ServerProperties { server_address: string; server_port: number; server_password_hash?: string; server_password?: string; } export declare enum BookmarkType { ENTRY = 0, DIRECTORY = 1 } export interface Bookmark { type: BookmarkType.ENTRY; parent: DirectoryBookmark; server_properties: ServerProperties; display_name: string; unique_id: string; nickname: string; default_channel?: number | string; default_channel_password_hash?: string; default_channel_password?: string; connect_profile: string; last_icon_id?: number; last_icon_server_id?: string; } export interface DirectoryBookmark { type: BookmarkType.DIRECTORY; parent: DirectoryBookmark; readonly content: (Bookmark | DirectoryBookmark)[]; unique_id: string; display_name: string; } export declare function bookmarks(): DirectoryBookmark; export declare function bookmarks_flat(): Bookmark[]; export declare function find_bookmark(uuid: string): Bookmark | DirectoryBookmark | undefined; export declare function parent_bookmark(bookmark: Bookmark): DirectoryBookmark; export declare function create_bookmark(display_name: string, directory: DirectoryBookmark, server_properties: ServerProperties, nickname: string): Bookmark; export declare function create_bookmark_directory(parent: DirectoryBookmark, name: string): DirectoryBookmark; export declare function change_directory(parent: DirectoryBookmark, bookmark: Bookmark | DirectoryBookmark): void; export declare function save_bookmark(bookmark?: Bookmark | DirectoryBookmark): void; export declare function delete_bookmark(bookmark: Bookmark | DirectoryBookmark): void; export declare function add_server_to_bookmarks(server: ConnectionHandler): void;