/*** * @file: * @author: caojianping * @Date: 2023-07-05 19:34:14 */ import { OpenPlatformTypeEnum } from '../enums'; import { IOpenPlatform, IOpenPlatformOptions, IFeishuScanResult, IFeishuAuthResult, IFeishuShareParams } from '../interfaces'; /** * 飞书开放平台业务实现类 */ export declare class FeishuOpenPlatformService implements IOpenPlatform { private h5sdk; private tt; type: OpenPlatformTypeEnum; key: string; agAppId: string; isReady: boolean; options: IOpenPlatformOptions | null; private appId; /** * 构造函数 * @returns void */ constructor(); /** * 初始化飞书 * PS:飞书jsapi必须先鉴权才能调用 * @param options 飞书选项 */ init(options?: IOpenPlatformOptions): Promise; /** * 授权码 * @returns 返回授权码 */ authCode(): Promise; /** * 飞书扫码 * @param type 扫码类型 * @param barCodeInput 是否支持手动输入条形码 * @returns 返回扫码结果数据 */ scanCode(type?: string[], barCodeInput?: boolean): Promise; /** * 飞书分享 * @param shareParams 分享设置需要传递的参数 * @param debugFlag 是否为debug模式 true可以规避isReady的检测机制 */ share(shareParams: IFeishuShareParams, debugFlag?: boolean): Promise; }