import type { AnyExportedSpan, MetricEvent, LogEvent, ScoreEvent, FeedbackEvent } from '../../../observability/index.js'; import { EntityType } from '../../../observability/types/tracing.js'; import type { CreateFeedbackRecord } from './feedback.js'; import type { CreateLogRecord } from './logs.js'; import type { CreateMetricRecord } from './metrics.js'; import type { CreateScoreRecord } from './scores.js'; import type { CreateSpanRecord, UpdateSpanRecord } from './tracing.js'; /** Safely cast string to EntityType, returning null if invalid */ export declare function toEntityType(value: string | undefined | null): EntityType | null; /** Extract a string from an unknown value, returning null if not a string. */ export declare function getStringOrNull(value: unknown): string | null; /** Extract a plain object from an unknown value, returning null if not an object. */ export declare function getObjectOrNull(value: unknown): Record | null; /** * Serializes span attributes to a plain JSON-safe object. * Handles Date objects and nested structures. */ export declare function serializeSpanAttributes(span: AnyExportedSpan): Record | null; /** Convert an exported span to a CreateSpanRecord */ export declare function buildCreateSpanRecord(span: AnyExportedSpan): CreateSpanRecord; /** Convert an exported span to a partial UpdateSpanRecord */ export declare function buildUpdateSpanRecord(span: AnyExportedSpan): Partial; /** Convert a MetricEvent to a CreateMetricRecord. */ export declare function buildMetricRecord(event: MetricEvent): CreateMetricRecord; /** Convert a LogEvent to a CreateLogRecord */ export declare function buildLogRecord(event: LogEvent): CreateLogRecord; /** Convert a ScoreEvent to a CreateScoreRecord */ export declare function buildScoreRecord(event: ScoreEvent): CreateScoreRecord; /** Convert a FeedbackEvent to a CreateFeedbackRecord */ export declare function buildFeedbackRecord(event: FeedbackEvent): CreateFeedbackRecord; //# sourceMappingURL=record-builders.d.ts.map