import { Activity } from "@microsoft/agents-activity"; import type { ResourceResponse } from "@microsoft/agents-hosting"; import { type MediaSourceInput } from "onebots"; export interface TeamsFileUploadResult { status: number; etag?: string; } export interface TeamsFileConsentResult { upload: TeamsFileUploadResult; message: ResourceResponse; } /** 只允许消费已认证 fileConsent/invoke 中收到的一次性上传会话。 */ export declare class TeamsFileConsentManager { private readonly sendActivity; private readonly pending; private readonly operations; constructor(sendActivity: (conversationId: string, activity: Activity) => Promise); capture(activity: Activity): void; complete(activityId: string, source: MediaSourceInput): Promise; private completePending; } //# sourceMappingURL=file-consent.d.ts.map