"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isVideoPost = exports.isTextPost = exports.isStreamPost = exports.isPollPost = exports.isImagePost = exports.isFilePost = void 0;
const isTextPost = post => {
  if (post && post.data && typeof post.data !== 'string' && 'text' in post.data) return true;
  return false;
};
exports.isTextPost = isTextPost;
const isStreamPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'streamId' in post.data);
};
exports.isStreamPost = isStreamPost;
const isFilePost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'fileId' in post.data);
};
exports.isFilePost = isFilePost;
const isImagePost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'fileId' in post.data && post.dataType === 'image');
};
exports.isImagePost = isImagePost;
const isVideoPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'videoFileId' in post.data);
};
exports.isVideoPost = isVideoPost;
const isPollPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'pollId' in post.data);
};
exports.isPollPost = isPollPost;
//# sourceMappingURL=postType.js.map