import http = require("http");
import Promise = require("bluebird");
import { Authentication } from '../auth/Authentication';
import { ApplicationUser } from '../models/ApplicationUser';
import { ApplicationUserCreate } from '../models/ApplicationUserCreate';
import { ApplicationUserCreateWithMacKey } from '../models/ApplicationUserCreateWithMacKey';
import { ApplicationUserUpdate } from '../models/ApplicationUserUpdate';
import { EntityQuery } from '../models/EntityQuery';
import { EntityQueryFilter } from '../models/EntityQueryFilter';
declare class ApplicationUserService {
    protected _basePath: string;
    protected _defaultHeaders: any;
    protected _useQuerystring: boolean;
    protected _timeout: number;
    protected _defaultAuthentication: Authentication;
    constructor(configuration: any);
    /**
    * Set timeout in seconds. Default timeout: 25 seconds
    * @param {number} timeout
    */
    set timeout(timeout: number);
    private setTimeout;
    set basePath(basePath: string);
    get basePath(): string;
    protected setDefaultAuthentication(auth: Authentication): void;
    private getVersion;
    /**
    * Deletes the entity with the given id.
    * @summary Delete
    * @param id
    * @param {*} [options] Override http request options.
    */
    _delete(id: number, options?: any): Promise<{
        response: http.IncomingMessage;
        body?: any;
    }>;
    /**
    * Counts the number of items in the database as restricted by the given filter.
    * @summary Count
    * @param filter The filter which restricts the entities which are used to calculate the count.
    * @param {*} [options] Override http request options.
    */
    count(filter?: EntityQueryFilter, options?: any): Promise<{
        response: http.IncomingMessage;
        body: number;
    }>;
    /**
    * Creates the application user with the given properties.
    * @summary Create
    * @param entity The user object with the properties which should be created.
    * @param {*} [options] Override http request options.
    */
    create(entity: ApplicationUserCreate, options?: any): Promise<{
        response: http.IncomingMessage;
        body: ApplicationUserCreateWithMacKey;
    }>;
    /**
    * Reads the entity with the given 'id' and returns it.
    * @summary Read
    * @param id The id of the application user which should be returned.
    * @param {*} [options] Override http request options.
    */
    read(id: number, options?: any): Promise<{
        response: http.IncomingMessage;
        body: ApplicationUser;
    }>;
    /**
    * Searches for the entities as specified by the given query.
    * @summary Search
    * @param query The query restricts the application users which are returned by the search.
    * @param {*} [options] Override http request options.
    */
    search(query: EntityQuery, options?: any): Promise<{
        response: http.IncomingMessage;
        body: Array<ApplicationUser>;
    }>;
    /**
    * This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
    * @summary Update
    * @param entity The application user entity with all the properties which should be updated. The id and the version are required properties.
    * @param {*} [options] Override http request options.
    */
    update(entity: ApplicationUserUpdate, options?: any): Promise<{
        response: http.IncomingMessage;
        body: ApplicationUser;
    }>;
}
export { ApplicationUserService };
