import type { PartnerOutboundAttachment } from '../../channel-message.js'; import type { GetUpdatesResponse, QrCodeData, QrCodeStatusData } from './types.js'; export declare const WEIXIN_DEFAULT_BASE_URL = "https://ilinkai.weixin.qq.com"; export declare class WeixinApi { private readonly baseUrl; private readonly botToken; constructor(baseUrl?: string, botToken?: string); getQrCode(signal?: AbortSignal): Promise; getQrCodeStatus(qrcode: string, signal?: AbortSignal): Promise; getUpdates(buffer: string, timeoutMs: number, signal: AbortSignal): Promise; sendText(toUserId: string, text: string, contextToken: string | undefined, signal?: AbortSignal): Promise; sendAttachment(toUserId: string, attachment: PartnerOutboundAttachment, contextToken: string | undefined, signal?: AbortSignal, allowed?: () => boolean): Promise; private get; private post; private headers; } //# sourceMappingURL=api.d.ts.map