import type * as stream from "stream";
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
import * as core from "../../../../../../core";
import type * as Merge from "../../../../../index";
export declare namespace TicketsClient {
    type Options = BaseClientOptions;
    interface RequestOptions extends BaseRequestOptions {
    }
}
export declare class TicketsClient {
    protected readonly _options: NormalizedClientOptionsWithAuth<TicketsClient.Options>;
    constructor(options: TicketsClient.Options);
    /**
     * Returns a list of `Ticket` objects.
     *
     * @param {Merge.ticketing.TicketsListRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.list({
     *         accountId: "account_id",
     *         assigneeIds: "assignee_ids",
     *         collectionIds: "collection_ids",
     *         completedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         completedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         contactId: "contact_id",
     *         createdAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         createdBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         creatorId: "creator_id",
     *         creatorIds: "creator_ids",
     *         cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
     *         dueAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         dueBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         includeDeletedData: true,
     *         includeRemoteData: true,
     *         includeRemoteFields: true,
     *         includeShellData: true,
     *         modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         name: "name",
     *         pageSize: 1,
     *         parentTicketId: "parent_ticket_id",
     *         priority: "HIGH",
     *         remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         remoteFields: "priority",
     *         remoteId: "remote_id",
     *         remoteIds: "remote_ids",
     *         remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         showEnumOrigins: "priority",
     *         status: "",
     *         tags: "tags",
     *         ticketType: "ticket_type",
     *         ticketUrl: "ticket_url"
     *     })
     */
    list(request?: Merge.ticketing.TicketsListRequest, requestOptions?: TicketsClient.RequestOptions): Promise<core.Page<Merge.ticketing.Ticket, Merge.ticketing.PaginatedTicketList>>;
    /**
     * Creates a `Ticket` object with the given values.
     *
     * @param {Merge.ticketing.TicketEndpointRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.create({
     *         isDebugMode: true,
     *         runAsync: true,
     *         model: {}
     *     })
     */
    create(request: Merge.ticketing.TicketEndpointRequest, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<Merge.ticketing.TicketResponse>;
    private __create;
    /**
     * Returns a `Ticket` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.ticketing.TicketsRetrieveRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.retrieve("id", {
     *         includeRemoteData: true,
     *         includeRemoteFields: true,
     *         includeShellData: true,
     *         remoteFields: "priority",
     *         showEnumOrigins: "priority"
     *     })
     */
    retrieve(id: string, request?: Merge.ticketing.TicketsRetrieveRequest, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<Merge.ticketing.Ticket>;
    private __retrieve;
    /**
     * Updates a `Ticket` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.ticketing.PatchedTicketEndpointRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.partialUpdate("id", {
     *         isDebugMode: true,
     *         runAsync: true,
     *         model: {}
     *     })
     */
    partialUpdate(id: string, request: Merge.ticketing.PatchedTicketEndpointRequest, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<Merge.ticketing.TicketResponse>;
    private __partialUpdate;
    /**
     * Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls)
     *
     * @param {string} ticket_id
     * @param {Merge.ticketing.TicketsViewersListRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.viewersList("ticket_id", {
     *         cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
     *         includeDeletedData: true,
     *         includeRemoteData: true,
     *         includeShellData: true,
     *         pageSize: 1
     *     })
     */
    viewersList(ticket_id: string, request?: Merge.ticketing.TicketsViewersListRequest, requestOptions?: TicketsClient.RequestOptions): Promise<core.Page<Merge.ticketing.Viewer, Merge.ticketing.PaginatedViewerList>>;
    /**
     * Returns a list of `Ticket` objects.
     */
    liveSearchRetrieve(request?: Merge.ticketing.TicketsLiveSearchRetrieveRequest, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<stream.Readable>;
    private __liveSearchRetrieve;
    /**
     * Returns metadata for `Ticket` PATCHs.
     *
     * @param {string} id
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.metaPatchRetrieve("id")
     */
    metaPatchRetrieve(id: string, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<Merge.ticketing.MetaResponse>;
    private __metaPatchRetrieve;
    /**
     * Returns metadata for `Ticket` POSTs.
     *
     * @param {Merge.ticketing.TicketsMetaPostRetrieveRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.metaPostRetrieve({
     *         collectionId: "collection_id",
     *         ticketType: "ticket_type"
     *     })
     */
    metaPostRetrieve(request?: Merge.ticketing.TicketsMetaPostRetrieveRequest, requestOptions?: TicketsClient.RequestOptions): core.HttpResponsePromise<Merge.ticketing.MetaResponse>;
    private __metaPostRetrieve;
    /**
     * Returns a list of `RemoteFieldClass` objects.
     *
     * @param {Merge.ticketing.TicketsRemoteFieldClassesListRequest} request
     * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ticketing.tickets.remoteFieldClassesList({
     *         cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
     *         ids: "ids",
     *         includeDeletedData: true,
     *         includeRemoteData: true,
     *         includeShellData: true,
     *         isCommonModelField: true,
     *         isCustom: true,
     *         pageSize: 1
     *     })
     */
    remoteFieldClassesList(request?: Merge.ticketing.TicketsRemoteFieldClassesListRequest, requestOptions?: TicketsClient.RequestOptions): Promise<core.Page<Merge.ticketing.RemoteFieldClass, Merge.ticketing.PaginatedRemoteFieldClassList>>;
}
