import { Platform } from '@ionic/angular'; import { SocialSharing } from '@awesome-cordova-plugins/social-sharing/ngx'; import * as i0 from "@angular/core"; export declare enum ShareAppType { WECHAT = 1,// 微信 WECOM = 2,// 企业微信 SINA_WEIBO = 3,// 新浪微博 SOCIAL = 4,// 系统分享 SOCIAL_WECOM = 5 } export declare enum ShareScene { SESSION = 0,// 聊天界面 TIMELINE = 1,// 朋友圈 FAVORITE = 2 } export declare enum ShareType { IMAGE = 4,// 图片 MUSIC = 5,// 音乐 VIDEO = 6,// 视频 WEBPAGE = 7,// 链接 MINI = 8,// 小程序 TEXT = 9 } export declare enum ShareMini { RELEASE = 0,// 正式版 TEST = 1,// 测试版 PREVIEW = 2 } export interface ShareOption { type: ShareType; appType?: ShareAppType; title?: string; description?: string; thumb?: string; scene?: ShareScene; text?: string; image?: string | string[]; imageType?: string; fileName?: string; music?: string; musicData?: string; video?: string; link?: string; userName?: string; path?: string; hdImageData?: string; withShareTicket?: string; miniprogramType?: ShareMini; packageName?: string; uiPage?: string; } export declare class CTYShareService { platform: Platform; socialSharing: SocialSharing; constructor(); Share(option: ShareOption): Promise; /** * 微信 * @param option * @returns */ private wechatShare; private getWXMessage; /** * 微博 * @param option * @returns */ private sinaShare; /** * 企业微信 * @param option * @returns */ private wecomShare; /** * 系统方式的企业微信 * @param option * @returns */ private socialWecomShare; /** * 系统分享 * @param option * @returns */ private socialShare; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }