import { AttioCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { APIError } from "../models/errors/apierror.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { GetV2ThreadsRequest, GetV2ThreadsResponse } from "../models/operations/getv2threads.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
 * List threads
 *
 * @remarks
 * List threads of comments on a record or list entry.
 *
 * To view threads on records, you will need the `object_configuration:read` and `record_permission:read` scopes.
 *
 * To view threads on list entries, you will need the `list_configuration:read` and `list_entry:read` scopes.
 *
 * Required scopes: `comment:read`.
 */
export declare function threadsList(client: AttioCore, request: GetV2ThreadsRequest, options?: RequestOptions): APIPromise<Result<GetV2ThreadsResponse, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
//# sourceMappingURL=threadsList.d.ts.map