/** * Google Tasks operations — agent-friendly wrappers. * * All functions take an OAuth2Client and return typed results. * Destructive operations (delete, clear) are gated by the safety system. */ import type { OAuth2Client } from 'google-auth-library'; import type { TaskList, Task, TaskOptions, ListTasksOptions, ListResult, WriteResult } from './types.js'; export type { TaskList, Task, TaskOptions, ListTasksOptions, ListResult, WriteResult, } from './types.js'; /** * List all task lists. */ export declare function listTaskLists(auth: OAuth2Client): Promise; /** * Create a new task list. */ export declare function createTaskList(auth: OAuth2Client, title: string): Promise; /** * Delete a task list. * * ⚠️ DESTRUCTIVE — requires safety confirmation. */ export declare function deleteTaskList(auth: OAuth2Client, taskListId: string): Promise; /** * List tasks in a task list. */ export declare function listTasks(auth: OAuth2Client, taskListId: string, opts?: ListTasksOptions): Promise>; /** * Get a single task by ID. */ export declare function getTask(auth: OAuth2Client, taskListId: string, taskId: string): Promise; /** * Create a new task. */ export declare function createTask(auth: OAuth2Client, taskListId: string, opts: TaskOptions): Promise; /** * Update a task. Uses PATCH semantics — only provided fields are changed. */ export declare function updateTask(auth: OAuth2Client, taskListId: string, taskId: string, opts: Partial): Promise; /** * Complete a task (shorthand for update with status='completed'). */ export declare function completeTask(auth: OAuth2Client, taskListId: string, taskId: string): Promise; /** * Move a task (reorder or reparent). */ export declare function moveTask(auth: OAuth2Client, taskListId: string, taskId: string, opts?: { parent?: string; previous?: string; }): Promise; /** * Delete a task. * * ⚠️ DESTRUCTIVE — requires safety confirmation. */ export declare function deleteTask(auth: OAuth2Client, taskListId: string, taskId: string): Promise; /** * Clear all completed tasks from a task list. * * ⚠️ DESTRUCTIVE — requires safety confirmation. */ export declare function clearCompleted(auth: OAuth2Client, taskListId: string): Promise; //# sourceMappingURL=index.d.ts.map