@racla-dev/node-iris
Version:
TypeScript port of Python irispy-client module for KakaoTalk bot development
30 lines • 2.89 kB
TypeScript
/**
* Utility functions for type checking and validation
*/
import type { AudioAttachment, FileAttachment, MentionListAttachment, MultiPhotoAttachment, NewMultiPhotoAttachment, ParsedAttachmentType, PhotoAttachment, ReplyAttachment, VideoAttachment } from './attachment-types';
import type { DeleteMessageType, InviteUserFeedType, LeaveUserFeedType, OpenChatDemoteManagerType, OpenChatHandOverHostType, OpenChatHideMessageType, OpenChatJoinUserFeedType, OpenChatKickedUserType, OpenChatPromoteManagerType, ParsedMessageType } from './feed-types';
export declare function isStringMessage(msg: ParsedMessageType): msg is string;
export declare function isFeedMessage(msg: ParsedMessageType): msg is Exclude<ParsedMessageType, string>;
export declare function isInviteUserFeed(msg: ParsedMessageType): msg is InviteUserFeedType;
export declare function isLeaveUserFeed(msg: ParsedMessageType): msg is LeaveUserFeedType;
export declare function isOpenChatJoinUserFeed(msg: ParsedMessageType): msg is OpenChatJoinUserFeedType;
export declare function isOpenChatKickedUserFeed(msg: ParsedMessageType): msg is OpenChatKickedUserType;
export declare function isOpenChatPromoteManagerFeed(msg: ParsedMessageType): msg is OpenChatPromoteManagerType;
export declare function isOpenChatDemoteManagerFeed(msg: ParsedMessageType): msg is OpenChatDemoteManagerType;
export declare function isDeleteMessageFeed(msg: ParsedMessageType): msg is DeleteMessageType;
export declare function isOpenChatHandOverHostFeed(msg: ParsedMessageType): msg is OpenChatHandOverHostType;
export declare function isOpenChatHideMessageFeed(msg: ParsedMessageType): msg is OpenChatHideMessageType;
export declare function isMentionListAttachment(attachment: ParsedAttachmentType): attachment is MentionListAttachment;
export declare function isPhotoAttachment(attachment: ParsedAttachmentType): attachment is PhotoAttachment;
export declare function isMultiPhotoAttachment(attachment: ParsedAttachmentType): attachment is MultiPhotoAttachment;
export declare function isVideoAttachment(attachment: ParsedAttachmentType): attachment is VideoAttachment;
export declare function isAudioAttachment(attachment: ParsedAttachmentType): attachment is AudioAttachment;
export declare function isReplyAttachment(attachment: ParsedAttachmentType): attachment is ReplyAttachment;
export declare function isFileAttachment(attachment: ParsedAttachmentType): attachment is FileAttachment;
export declare function isNewMultiPhotoAttachment(attachment: ParsedAttachmentType): attachment is NewMultiPhotoAttachment;
export declare function hasPathProperty(attachment: ParsedAttachmentType): attachment is {
path: string;
} & ParsedAttachmentType;
export declare function getFeedLogMessage(msg: ParsedMessageType): string;
export declare function safeParseMessage(message: string): ParsedMessageType;
//# sourceMappingURL=utils.d.ts.map