import { GetToken } from 'wecom-common'; import { GetDoc } from './doc'; /** * 用于查询Sheet的请求参数结构 */ export type GetSheet = { sheet_id: string; } & GetDoc; export type AddSheet = { properties?: { title?: string; index?: number; }; } & GetDoc; export type UpdateSheet = { properties: { sheet_id: string; title: string; }; } & GetDoc; /** * 查询子表 * 本接口用于查询一篇在线表格中全部智能表信息。 * @see https://developer.work.weixin.qq.com/document/path/99911 * @returns */ export declare const sheets: (params: GetDoc, options: GetToken) => Promise; /** * 添加子表 * 本接口用于在表格的某个位置添加一个智能表,该智能表不存在视图、记录和字段,可以使用 API 在该智能表中添加视图、记录和字段。 * @see https://developer.work.weixin.qq.com/document/path/99896 */ export declare const add: (params: AddSheet, options: GetToken) => Promise; /** * 删除子表 */ export declare const del: (params: GetSheet, options: GetToken) => Promise; /** * 更新子表 * 用于修改表格中某个子表的标题 */ export declare const update: (params: UpdateSheet, options: any) => Promise;