import { Capi } from '@tencent-sdk/capi'; import { CreateNoticeOptions, NoticeDetail } from './interface'; import { ActionType } from './apis'; import { CapiCredentials, RegionType } from '../interface'; export default class Notice { credentials: CapiCredentials; capi: Capi; region: RegionType; constructor(credentials: CapiCredentials, region?: RegionType); /** * 获取通知详情 * @param options 通知 id 或者 name * @returns 通知详情 */ get({ id, name }: { id?: string; name?: string }): Promise; create(options: CreateNoticeOptions): Promise< CreateNoticeOptions & { id: string; } >; delete({ id, name }: { id?: string; name?: string }): Promise; request({ Action, ...data }: { Action: ActionType; [key: string]: any }): Promise; }