import { al as SessionEvent } from './dto-CIYO4YQw.js'; import { H as ProviderSessionEvent } from './session-thread-K0mtKer0.js'; export { a2 as SessionThread, K as SessionThreadListOptions, L as SessionThreadPage } from './session-thread-K0mtKer0.js'; import 'zod'; import './file-Cj5-Vx27.js'; interface SessionEventSanitizerOptions { /** Include raw provider data using the selected redaction/truncation policies. Defaults to false. */ includeRaw?: boolean; /** Apply sensitive-text redaction. Defaults to true; independent of truncation. */ redact?: boolean; /** Apply the legacy text-size limits. Defaults to true; independent of redaction. */ truncate?: boolean; } declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: SessionEventSanitizerOptions): SessionEvent[]; declare function sanitizeSessionEvent(event: ProviderSessionEvent, options?: SessionEventSanitizerOptions): SessionEvent; interface BailianEventMappingOptions { event_format?: "legacy" | "snapshot"; } declare function toSessionEvent(raw: Record, options?: BailianEventMappingOptions): ProviderSessionEvent; interface BailianSessionEventNormalizerOptions extends SessionEventSanitizerOptions { /** Maximum retained identities, orphan frames and blocks per message. Defaults to 1024. */ maxEntries?: number; } interface BailianSessionEventNormalizer { /** Consume one parsed Bailian business frame, returning a cumulative contract snapshot. */ push(raw: Record): SessionEvent | undefined; /** Display and protect history; unfinished text is never used as a resumed delta baseline. */ seed(raw: Record): SessionEvent | undefined; /** Release all state. Call before rebuilding history or changing the logical session. */ clear(): void; } /** * Pure browser-safe Bailian conversion. No HTTP, credentials, SSE framing or retry policy. * Use one instance per subscription. Redaction/truncation default to true; raw defaults off. */ declare function createBailianSessionEventNormalizer(options?: BailianSessionEventNormalizerOptions): BailianSessionEventNormalizer; export { type BailianSessionEventNormalizer, type BailianSessionEventNormalizerOptions, SessionEvent, type SessionEventSanitizerOptions, createBailianSessionEventNormalizer, sanitizeSessionEvent, sanitizeSessionEvents, toSessionEvent as toBailianSessionEvent };