import { HotPepperResponse, MasterResponse, ResponseField } from './apiBase'; import { MiddleAreaResponse } from './middleArea'; export interface SmallAreaResponse { small_area: (MasterResponse & { [key in keyof MiddleAreaResponse | keyof MiddleAreaResponse[keyof MiddleAreaResponse][number]]: MasterResponse; })[]; } /** * Small Area Master API. * * @class SmallArea * @export * @see https://webservice.recruit.co.jp/doc/hotpepper/reference.html */ export declare class SmallArea { private _URL; private _keyManager; private _params; constructor(); /** * Sets small area codes (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 SmallArea * @param {...string[]} codes Small area codes. * @returns {any} {this} */ smallArea(...codes: string[]): this; /** * Sets middle area codes (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 SmallArea * @param {...string[]} codes Middle area codes. * @returns {any} {this} */ middleArea(...codes: string[]): this; /** * Sets small area name (partial match), specified in UTF8 (URL encoding) * * @memberof SmallArea * @param {string} keyword * @returns {any} {this} */ keyword(keyword: string): this; /** * Specify the number of search results to start outputting. * * @memberof SmallArea * @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 SmallArea * @param {number} count The number of search results to be output from. * @returns {any} {this} */ count(count: number): this; /** * Search small areas. * * @memberof SmallArea * @returns {any} * {Promise>>} */ search(): Promise>>; }