import type { TaskListRecord } from './types.js'; export declare const DEFAULT_TASK_LIST_ID = "default"; export declare const TASK_LIST_NAME_MAX_CODE_POINTS = 64; export declare class TaskListError extends Error { readonly code: 'invalid_name' | 'duplicate_name' | 'reserved_name' | 'list_not_found' | 'default_immutable' | 'destination_required' | 'same_destination'; constructor(code: 'invalid_name' | 'duplicate_name' | 'reserved_name' | 'list_not_found' | 'default_immutable' | 'destination_required' | 'same_destination', message: string); } export declare const taskListsPath: () => string; export declare const taskListsLockPath: () => string; export declare const withTaskListsLock: (fn: () => T | Promise) => Promise; export declare function normalizeTaskListName(input: string): string; export declare function readTaskLists(): TaskListRecord[]; export declare function resolveTaskList(name: string, lists?: TaskListRecord[]): TaskListRecord; /** Caller must hold withTaskListsLock. */ export declare function createTaskListLocked(name: string): TaskListRecord; /** Caller must hold withTaskListsLock. */ export declare function renameTaskListLocked(currentName: string, nextName: string): TaskListRecord; /** Caller must hold withTaskListsLock. */ export declare function deleteTaskListRecordLocked(listId: string): void;