/**
 * Admin API
 * The Admin API is used to manage the ApeCloud platform.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: support@apecloud.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import { type RequestArgs, BaseAPI } from '../base';
import type { DmsSession } from '../models';
/**
 * SessionApi - axios parameter creator
 * @export
 */
export declare const SessionApiAxiosParamCreator: (configuration?: Configuration) => {
    /**
     * kill a session in cluster
     * @summary Kill cluster session
     * @param {string} engineName name of the engine
     * @param {string} orgName name of the Org
     * @param {string} clusterName name of the Cluster
     * @param {string} session session id
     * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    killSession: (engineName: string, orgName: string, clusterName: string, session: string, keep?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * list sessions in cluster
     * @summary List cluster sessions
     * @param {string} engineName name of the engine
     * @param {string} orgName name of the Org
     * @param {string} clusterName name of the Cluster
     * @param {boolean} [all] whether list all session includes sleep
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listSessions: (engineName: string, orgName: string, clusterName: string, all?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};
/**
 * SessionApi - functional programming interface
 * @export
 */
export declare const SessionApiFp: (configuration?: Configuration) => {
    /**
     * kill a session in cluster
     * @summary Kill cluster session
     * @param {string} engineName name of the engine
     * @param {string} orgName name of the Org
     * @param {string} clusterName name of the Cluster
     * @param {string} session session id
     * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    killSession(engineName: string, orgName: string, clusterName: string, session: string, keep?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    /**
     * list sessions in cluster
     * @summary List cluster sessions
     * @param {string} engineName name of the engine
     * @param {string} orgName name of the Org
     * @param {string} clusterName name of the Cluster
     * @param {boolean} [all] whether list all session includes sleep
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listSessions(engineName: string, orgName: string, clusterName: string, all?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsSession>>>;
};
/**
 * SessionApi - factory interface
 * @export
 */
export declare const SessionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
    /**
     * kill a session in cluster
     * @summary Kill cluster session
     * @param {SessionApiKillSessionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * list sessions in cluster
     * @summary List cluster sessions
     * @param {SessionApiListSessionsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsSession>>;
};
/**
 * SessionApi - interface
 * @export
 * @interface SessionApi
 */
export interface SessionApiInterface {
    /**
     * kill a session in cluster
     * @summary Kill cluster session
     * @param {SessionApiKillSessionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SessionApiInterface
     */
    killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * list sessions in cluster
     * @summary List cluster sessions
     * @param {SessionApiListSessionsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SessionApiInterface
     */
    listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsSession>>;
}
/**
 * Request parameters for killSession operation in SessionApi.
 * @export
 * @interface SessionApiKillSessionRequest
 */
export interface SessionApiKillSessionRequest {
    /**
     * name of the engine
     * @type {string}
     * @memberof SessionApiKillSession
     */
    readonly engineName: string;
    /**
     * name of the Org
     * @type {string}
     * @memberof SessionApiKillSession
     */
    readonly orgName: string;
    /**
     * name of the Cluster
     * @type {string}
     * @memberof SessionApiKillSession
     */
    readonly clusterName: string;
    /**
     * session id
     * @type {string}
     * @memberof SessionApiKillSession
     */
    readonly session: string;
    /**
     * if keep is true, the session will not be killed but only closed
     * @type {boolean}
     * @memberof SessionApiKillSession
     */
    readonly keep?: boolean;
}
/**
 * Request parameters for listSessions operation in SessionApi.
 * @export
 * @interface SessionApiListSessionsRequest
 */
export interface SessionApiListSessionsRequest {
    /**
     * name of the engine
     * @type {string}
     * @memberof SessionApiListSessions
     */
    readonly engineName: string;
    /**
     * name of the Org
     * @type {string}
     * @memberof SessionApiListSessions
     */
    readonly orgName: string;
    /**
     * name of the Cluster
     * @type {string}
     * @memberof SessionApiListSessions
     */
    readonly clusterName: string;
    /**
     * whether list all session includes sleep
     * @type {boolean}
     * @memberof SessionApiListSessions
     */
    readonly all?: boolean;
}
/**
 * SessionApi - object-oriented interface
 * @export
 * @class SessionApi
 * @extends {BaseAPI}
 */
export declare class SessionApi extends BaseAPI implements SessionApiInterface {
    /**
     * kill a session in cluster
     * @summary Kill cluster session
     * @param {SessionApiKillSessionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SessionApi
     */
    killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
    /**
     * list sessions in cluster
     * @summary List cluster sessions
     * @param {SessionApiListSessionsRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SessionApi
     */
    listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DmsSession[], any, {}>>;
}
//# sourceMappingURL=session-api.d.ts.map