/**
 * Tickets
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v3
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/// <reference types="node" />
import http = require('http');
import { CollectionResponseAssociatedId } from '../model/collectionResponseAssociatedId';
import { SimplePublicObject } from '../model/simplePublicObject';
import { Authentication, Interceptor } from '../model/models';
import { ApiKeyAuth, OAuth } from '../model/models';
export declare enum AssociationsApiApiKeys {
    hapikey = 0
}
export declare class AssociationsApi {
    protected _basePath: string;
    protected _defaultHeaders: any;
    protected _useQuerystring: boolean;
    protected authentications: {
        default: Authentication;
        hapikey: ApiKeyAuth;
        oauth2: OAuth;
    };
    protected interceptors: Interceptor[];
    constructor(basePath?: string);
    set useQuerystring(value: boolean);
    set basePath(basePath: string);
    set defaultHeaders(defaultHeaders: any);
    get defaultHeaders(): any;
    get basePath(): string;
    setDefaultAuthentication(auth: Authentication): void;
    setApiKey(key: AssociationsApiApiKeys, value: string): void;
    set accessToken(token: string);
    addInterceptor(interceptor: Interceptor): void;
    /**
     *
     * @summary Remove an association between two tickets
     * @param ticketId
     * @param toObjectType
     * @param toObjectId
     * @param associationType
     */
    archive(ticketId: string, toObjectType: string, toObjectId: string, associationType: string, options?: {
        headers: {
            [name: string]: string;
        };
    }): Promise<{
        response: http.IncomingMessage;
        body?: any;
    }>;
    /**
     *
     * @summary Associate a ticket with another object
     * @param ticketId
     * @param toObjectType
     * @param toObjectId
     * @param associationType
     * @param paginateAssociations
     */
    create(ticketId: string, toObjectType: string, toObjectId: string, associationType: string, paginateAssociations?: boolean, options?: {
        headers: {
            [name: string]: string;
        };
    }): Promise<{
        response: http.IncomingMessage;
        body: SimplePublicObject;
    }>;
    /**
     *
     * @summary List associations of a ticket by type
     * @param ticketId
     * @param toObjectType
     * @param paginateAssociations
     * @param after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
     * @param limit The maximum number of results to display per page.
     */
    getAll(ticketId: string, toObjectType: string, paginateAssociations?: boolean, after?: string, limit?: number, options?: {
        headers: {
            [name: string]: string;
        };
    }): Promise<{
        response: http.IncomingMessage;
        body: CollectionResponseAssociatedId;
    }>;
}
