import { Readable } from "node:stream"; import * as Types from "./types.js"; import { AxiosRequestConfig } from "axios"; type RequestOption = { retryKey: string; }; /** * @deprecated Use clients generated by openapi spec instead. */ export default class Client { config: Types.ClientConfig; private http; private requestOption; constructor(config: Types.ClientConfig); setRequestOptionOnce(option: Partial): void; private generateRequestConfig; private parseHTTPResponse; pushMessage(to: string, messages: Types.Message | Types.Message[], notificationDisabled?: boolean, customAggregationUnits?: string[]): Promise; replyMessage(replyToken: string, messages: Types.Message | Types.Message[], notificationDisabled?: boolean): Promise; multicast(to: string[], messages: Types.Message | Types.Message[], notificationDisabled?: boolean, customAggregationUnits?: string[]): Promise; narrowcast(messages: Types.Message | Types.Message[], recipient?: Types.ReceieptObject, filter?: { demographic: Types.DemographicFilterObject; }, limit?: { max?: number; upToRemainingQuota?: boolean; }, notificationDisabled?: boolean): Promise; broadcast(messages: Types.Message | Types.Message[], notificationDisabled?: boolean): Promise; validatePushMessageObjects(messages: Types.Message | Types.Message[]): Promise; validateReplyMessageObjects(messages: Types.Message | Types.Message[]): Promise; validateMulticastMessageObjects(messages: Types.Message | Types.Message[]): Promise; validateNarrowcastMessageObjects(messages: Types.Message | Types.Message[]): Promise; validateBroadcastMessageObjects(messages: Types.Message | Types.Message[]): Promise; validateCustomAggregationUnits(units: string[]): { messages: string[]; valid: boolean; }; getProfile(userId: string): Promise; private getChatMemberProfile; getGroupMemberProfile(groupId: string, userId: string): Promise; getRoomMemberProfile(roomId: string, userId: string): Promise; private getChatMemberIds; getGroupMemberIds(groupId: string): Promise; getRoomMemberIds(roomId: string): Promise; getBotFollowersIds(): Promise; getGroupMembersCount(groupId: string): Promise; getRoomMembersCount(roomId: string): Promise; getGroupSummary(groupId: string): Promise; getMessageContent(messageId: string): Promise; private leaveChat; leaveGroup(groupId: string): Promise; leaveRoom(roomId: string): Promise; getRichMenu(richMenuId: string): Promise; createRichMenu(richMenu: Types.RichMenu): Promise; deleteRichMenu(richMenuId: string): Promise; getRichMenuAliasList(): Promise; getRichMenuAlias(richMenuAliasId: string): Promise; createRichMenuAlias(richMenuId: string, richMenuAliasId: string): Promise<{}>; deleteRichMenuAlias(richMenuAliasId: string): Promise<{}>; updateRichMenuAlias(richMenuAliasId: string, richMenuId: string): Promise<{}>; getRichMenuIdOfUser(userId: string): Promise; linkRichMenuToUser(userId: string, richMenuId: string): Promise; unlinkRichMenuFromUser(userId: string): Promise; linkRichMenuToMultipleUsers(richMenuId: string, userIds: string[]): Promise; unlinkRichMenusFromMultipleUsers(userIds: string[]): Promise; getRichMenuImage(richMenuId: string): Promise; setRichMenuImage(richMenuId: string, data: Buffer | Readable, contentType?: string): Promise; getRichMenuList(): Promise>; setDefaultRichMenu(richMenuId: string): Promise<{}>; getDefaultRichMenuId(): Promise; deleteDefaultRichMenu(): Promise<{}>; getLinkToken(userId: string): Promise; getNumberOfSentReplyMessages(date: string): Promise; getNumberOfSentPushMessages(date: string): Promise; getNumberOfSentMulticastMessages(date: string): Promise; getNarrowcastProgress(requestId: string): Promise; getTargetLimitForAdditionalMessages(): Promise; getNumberOfMessagesSentThisMonth(): Promise; getNumberOfSentBroadcastMessages(date: string): Promise; getNumberOfMessageDeliveries(date: string): Promise; getNumberOfFollowers(date: string): Promise; getFriendDemographics(): Promise; getUserInteractionStatistics(requestId: string): Promise; getStatisticsPerUnit(customAggregationUnit: string, from: string, to: string): Promise; createUploadAudienceGroup(uploadAudienceGroup: { description: string; isIfaAudience?: boolean; audiences?: { id: string; }[]; uploadDescription?: string; }): Promise<{ audienceGroupId: number; type: string; description: string; created: number; }>; createUploadAudienceGroupByFile(uploadAudienceGroup: { description: string; isIfaAudience?: boolean; uploadDescription?: string; file: Buffer | Readable; }): Promise<{ audienceGroupId: number; type: "UPLOAD"; description: string; created: number; }>; updateUploadAudienceGroup(uploadAudienceGroup: { audienceGroupId: number; description?: string; uploadDescription?: string; audiences: { id: string; }[]; }, httpConfig?: Partial): Promise<{}>; updateUploadAudienceGroupByFile(uploadAudienceGroup: { audienceGroupId: number; uploadDescription?: string; file: Buffer | Readable; }, httpConfig?: Partial): Promise<{}>; createClickAudienceGroup(clickAudienceGroup: { description: string; requestId: string; clickUrl?: string; }): Promise<{ audienceGroupId: number; type: string; created: number; } & { description: string; requestId: string; clickUrl?: string; }>; createImpAudienceGroup(impAudienceGroup: { requestId: string; description: string; }): Promise<{ audienceGroupId: number; type: string; created: number; } & { requestId: string; description: string; }>; setDescriptionAudienceGroup(description: string, audienceGroupId: string): Promise<{}>; deleteAudienceGroup(audienceGroupId: string): Promise<{}>; getAudienceGroup(audienceGroupId: string): Promise; getAudienceGroups(page: number, description?: string, status?: Types.AudienceGroupStatus, size?: number, createRoute?: Types.AudienceGroupCreateRoute, includesExternalPublicGroups?: boolean): Promise<{ audienceGroups: Types.AudienceGroups; hasNextPage: boolean; totalCount: number; readWriteAudienceGroupTotalCount: number; page: number; size: number; }>; getAudienceGroupAuthorityLevel(): Promise<{ authorityLevel: Types.AudienceGroupAuthorityLevel; }>; changeAudienceGroupAuthorityLevel(authorityLevel: Types.AudienceGroupAuthorityLevel): Promise<{}>; getBotInfo(): Promise; setWebhookEndpointUrl(endpoint: string): Promise<{}>; getWebhookEndpointInfo(): Promise; testWebhookEndpoint(endpoint?: string): Promise; validateRichMenu(richMenu: Types.RichMenu): Promise<{}>; } export declare class OAuth { private http; constructor(); issueAccessToken(client_id: string, client_secret: string): Promise; revokeAccessToken(access_token: string): Promise<{}>; verifyAccessToken(access_token: string): Promise; verifyIdToken(id_token: string, client_id: string, nonce?: string, user_id?: string): Promise; issueChannelAccessTokenV2_1(client_assertion: string): Promise; getChannelAccessTokenKeyIdsV2_1(client_assertion: string): Promise<{ key_ids: string[]; }>; revokeChannelAccessTokenV2_1(client_id: string, client_secret: string, access_token: string): Promise<{}>; } export {}; //# sourceMappingURL=client.d.ts.map