import { HotPepperResponse, MasterResponse, ResponseField } from './apiBase'; import { LargeAreaResponse } from './largeArea'; export interface MiddleAreaResponse { middle_area: (MasterResponse & { [key in keyof LargeAreaResponse | keyof LargeAreaResponse[keyof LargeAreaResponse][number]]: MasterResponse; })[]; } /** * Middle Area Master API. * * @class MiddleArea * @export * @see https://webservice.recruit.co.jp/doc/hotpepper/reference.html */ export declare class MiddleArea { private _URL; private _keyManager; private _params; constructor(); /** * Sets middle area code (exact match). (Up to 5 codes can be specified. If * 6 or more codes are specified, the 6th and subsequent codes will be ignored.) * * @memberof MiddleArea * @param {...string[]} codes Middle area codes. * @returns {any} {this} */ middleArea(...codes: string[]): this; /** * Sets large area code (exact match). (Up to 3 codes can be specified. If * more than 4 codes are specified, the fourth and subsequent codes will be ignored.) * * @memberof MiddleArea * @param {...string[]} codes Large area codes. * @returns {any} {this} */ largeArea(...codes: string[]): this; /** * Sets middle area name (partial match), specified in UTF8 (URL encoding) * * @memberof MiddleArea * @param {string} keyword Middle area name. * @returns {any} {this} */ keyword(keyword: string): this; /** * Specify the number of search results to start outputting. * * @memberof MiddleArea * @param {number} start The number of search results to start outputting. * @returns {any} {this} */ start(start: number): this; /** * Specifies the number of search results to be output from. * * @memberof MiddleArea * @param {number} count The number of search results to be output from. * @returns {any} {this} */ count(count: number): this; /** * Search middle areas. * * @memberof MiddleArea * @returns {any} * {Promise>>} */ search(): Promise>>; }