import { AgentResourceRepository } from '../repositories/agent-resource.repository';
import { AgentThreadRepository } from '../repositories/agent-thread.repository';
import type { IntegrationMessageContext, IntegrationMessageContextStore } from './integration-tools';
export declare class IntegrationMessageContextService implements IntegrationMessageContextStore {
    private readonly threadRepository;
    private readonly resourceRepository;
    constructor(threadRepository: AgentThreadRepository, resourceRepository: AgentResourceRepository);
    getLatest(threadId: string): Promise<IntegrationMessageContext | null>;
    setLatest(threadId: string, resourceId: string, context: IntegrationMessageContext): Promise<void>;
    private ensureResource;
    private parseMetadata;
}
export declare function isIntegrationMessageContext(value: unknown): value is IntegrationMessageContext;
