import type { TeamsGroupAudience } from "./teams-conversations.js"; import { type Database } from "./database.js"; /** A reference to accepted, authenticated Teams ingress, never a public request claim. */ export type TeamsConversationProof = { routeId: string; eventId: string; leaseToken: string; installationGeneration: string; }; /** Verify the durable sender rather than trusting a human-shaped access grant. * On a create transaction the share locks fence disconnect, unlink and lease * replacement through commit. The API cannot turn an arbitrary conversation or * event into private-session authority by copying these identifiers. */ export declare function requireTeamsConversationProof(db: Database, input: { accountId: string; workspaceId: string; subjectId: string; sessionId: string; initialMessage: string; personal?: boolean; proof: TeamsConversationProof; }): Promise<{ tenantId: string; personal: boolean; channelId: string | null; conversationId: string; groupAudience: TeamsGroupAudience | null; /** The installation's workspace; differs from the session's only for a * 1:1 route whose session lives in the sender's Personal workspace. */ installationWorkspaceId: string; /** The agent a 1:1 route's chat runs as, or null. */ agentId: string | null; /** The route's id. */ routeId: string; }>; export declare function requireTeamsPrivateSessionProof(db: Database, input: Parameters[1]): Promise;