import type { NoteService } from "../note-service"; import { type ToduDaemonClient } from "./daemon-client"; export declare class ToduNoteServiceError extends Error { readonly operation: string; readonly causeCode: string; readonly details?: Record; constructor(options: { operation: string; causeCode: string; message: string; details?: Record; cause?: unknown; }); } export interface ToduNoteServiceDependencies { client: ToduDaemonClient; } declare const createToduNoteService: ({ client }: ToduNoteServiceDependencies) => NoteService; declare const runNoteServiceOperation: (operation: string, action: () => Promise) => Promise; export { createToduNoteService, runNoteServiceOperation };