import type { PaginatedCommentList } from "../models/PaginatedCommentList"; import type { WrappedComment } from "../models/WrappedComment"; import type { WrappedCommentCreate } from "../models/WrappedCommentCreate"; import type { CancelablePromise } from "../core/CancelablePromise"; export declare class CommentService { /** * Create a new comment * Record a new comment that the user intends to add to a given task. This will save the comment in Dart for later access, search, etc. * @param requestBody * @returns WrappedComment Success, including the created comment * @throws ApiError */ static addTaskComment(requestBody: WrappedCommentCreate): CancelablePromise; /** * List comments for a task with filtering options. Filter by author, text content, or date range. Sort by date or hierarchical thread order. Task ID required. Supports pagination. * @returns PaginatedCommentList * @throws ApiError */ static listComments({ taskId, author, authorId, ids, limit, o, offset, parentId, publishedAt, publishedAtAfter, publishedAtBefore, task, text, }: { taskId: string; author?: string; authorId?: string; /** * Filter by IDs */ ids?: string; /** * Number of results to return per page. */ limit?: number; /** * Ordering * * * `published_at` - Published At * * `-published_at` - Published At (descending) * * `hierarchical` - Hierarchical */ o?: Array<"-published_at" | "hierarchical" | "published_at">; /** * The initial index from which to return the results. */ offset?: number; parentId?: string; publishedAt?: string; publishedAtAfter?: string; publishedAtBefore?: string; task?: string; text?: string; }): CancelablePromise; }