/** * Notebook creation and source management handlers * * Extracted from handlers.ts — handles create_notebook, batch_create_notebooks, * sync_library, list_sources, add_source, add_folder, and remove_source. */ import type { HandlerContext } from "./types.js"; import type { ToolResult, ProgressCallback } from "../../types.js"; import type { CreateNotebookInput, CreatedNotebook, NotebookSource } from "../../notebook-creation/types.js"; import type { SyncResult } from "../../notebook-creation/notebook-sync.js"; import type { ListSourcesResult, AddSourceResult, RemoveSourceResult } from "../../notebook-creation/source-manager.js"; export declare function handleCreateNotebook(ctx: HandlerContext, args: CreateNotebookInput, sendProgress?: ProgressCallback): Promise>; export declare function handleBatchCreateNotebooks(ctx: HandlerContext, args: { notebooks: Array<{ name: string; sources: Array<{ type: "url" | "text" | "file"; value: string; title?: string; }>; description?: string; topics?: string[]; }>; stop_on_error?: boolean; show_browser?: boolean; }, sendProgress?: ProgressCallback): Promise; }>>; export declare function handleSyncLibrary(ctx: HandlerContext, args: { auto_fix?: boolean; show_browser?: boolean; }): Promise>; export declare function handleListSources(ctx: HandlerContext, args: { notebook_id?: string; notebook_url?: string; }): Promise>; export declare function handleAddSource(ctx: HandlerContext, args: { notebook_id?: string; notebook_url?: string; source: NotebookSource; }): Promise>; export declare function handleAddFolder(ctx: HandlerContext, args: { folder_path: string; notebook_id?: string; notebook_url?: string; recursive?: boolean; file_types?: string[]; dry_run?: boolean; notebook_name_prefix?: string; }, sendProgress?: ProgressCallback): Promise; dry_run: boolean; }>>; export declare function handleRemoveSource(ctx: HandlerContext, args: { notebook_id?: string; notebook_url?: string; source_id: string; }): Promise>;