import { VantaCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { VantaError } from "../models/errors/vantaerror.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * List comments for a control within an audit * * @remarks * Retrieves a paginated list of comments on a control within an IRL audit, * enabling auditors to view collaboration history on the control. * * This endpoint always includes soft-deleted records (where `deletionDate !== null`). * Clients should check the `deletionDate` field to identify and handle deleted records * appropriately in their systems. * * This endpoint supports delta synchronization via the `changedSinceDate` parameter, * allowing efficient polling for changes without retrieving the entire dataset. * * Returns 404 when the control is not part of the audit. * * Pagination usage: * 1. Make initial request with desired `pageSize` * 2. Check `results.pageInfo.hasNextPage` to see if more data exists * 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request * 4. Repeat until `hasNextPage` is false * * Delta sync usage: * 1. Store the timestamp of your last sync * 2. Pass that timestamp as `changedSinceDate` * 3. Only comments created, modified, or deleted since that timestamp are returned * 4. Process updates, including soft-deletes (deletionDate !== null) * 5. Update your last sync timestamp to the current time * * Rate limit: 50 requests / minute. */ export declare function auditsListCommentsForControl(client: VantaCore, request: operations.ListCommentsForControlRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsListCommentsForControl.d.ts.map