import { BaseRequest } from "../base/index.js"; import Auth from "../base/Auth.js"; import type { SearchTypeParams } from "../types/search.js"; export default class Search extends BaseRequest { noAuthUseCookie: boolean; constructor(auth?: Auth, useCookie?: boolean); all(params: { keyword: string; page: number; page_size: number; }, useCookie?: boolean): Promise<{ [key: string]: any; }>; /** * 分类搜索 * @param {SearchTypeParams} params - 搜索参数 */ type(params: SearchTypeParams, useCookie?: boolean): Promise<{ [key: string]: any; }>; }