import { ResolvedContext } from "./ContextResolver.js";
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";

//#region src/domains/run/context/context.d.ts
declare function determineContextTrigger(tenantId: string, projectId: string, conversationId: string): Promise<'initialization' | 'invocation'>;
declare function handleContextConfigChange(executionContext: FullExecutionContext, conversationId: string, newContextConfigId: string, credentialStores?: CredentialStoreRegistry): Promise<void>;
declare function handleContextResolution({
  executionContext,
  conversationId,
  headers,
  credentialStores
}: {
  executionContext: FullExecutionContext;
  conversationId: string;
  headers: Record<string, unknown>;
  credentialStores?: CredentialStoreRegistry;
}): Promise<ResolvedContext | null>;
//#endregion
export { determineContextTrigger, handleContextConfigChange, handleContextResolution };