import type { PartialToolCall } from '../../../../providers/interface.js';
import type { ConversationDomainState } from '../../domains/conversation.js';
export declare function uniq<T>(items: T[]): T[];
export declare function now(): number;
export declare function updateDomainMetadata<T extends {
    revision: number;
    lastUpdatedAt: number;
    source: string;
}>(domain: T, source: string): T;
export declare function isTerminalTurnState(state: ConversationDomainState['turnState']): boolean;
export declare function canStartNewTurn(domain: ConversationDomainState): boolean;
export declare function isCurrentTurnEvent(domain: ConversationDomainState, turnId: string): boolean;
export declare function formatPartialToolPreview(toolCalls?: PartialToolCall[]): string | undefined;
export declare function resetStreamState(): ConversationDomainState['stream'];
//# sourceMappingURL=shared.d.ts.map