import { GetToken } from 'wecom-common'; /** * 用于查询Doc的请求参数结构 */ export type GetDoc = { docid: string; }; export declare enum DocType { Document = 3, SpreadSheet = 4, SmartSheet = 10 } export type CreateDocProps = { /** * 空间ID * 若指定spaceid,则fatherid也要同时指定 */ spaceid?: string; /** * 父目录文件ID * 在根目录时为空间ID */ fatherid?: string; /** * 文档类型 * 3: 文档 * 4: 表格 * 10: 智能表格(目前仅支持自建应用创建) */ doc_type: DocType; /** * 文档名称 * 注意:文件名最多填255个字符,超过255个字符会被截断 */ doc_name: string; /** * 文档管理员用户ID * 可选字段,指定文档管理员的userid列表 */ admin_users?: string[]; }; export type DeleteDocProps = { /** * 文档docid(docid、formid只能填其中一个) */ docid?: string; /** * 收集表id(docid、formid只能填其中一个) */ formid?: string; }; /** * 新建文档 https://developer.work.weixin.qq.com/document/path/97460 */ export declare const create: (params: CreateDocProps, options: GetToken) => Promise; /** * 删除文档 * https://developer.work.weixin.qq.com/document/path/97735 */ export declare const del: (params: DeleteDocProps, options: GetToken) => Promise; export declare const share: (params: any, options: GetToken) => Promise; export declare const rename: (params: any, new_name: any, options: GetToken) => Promise;