import { Q as parseSessionThreadInfoFast } from "./store-D3zogNDS.js";
//#region src/media-understanding/extracted-file-images.ts
function stripExtractedFileImageMetadata(image) {
	return {
		type: "image",
		data: image.data,
		mimeType: image.mimeType
	};
}
//#endregion
//#region src/auto-reply/reply/routed-delivery-thread.ts
/** Resolves the thread id used when replies are routed through channel delivery helpers. */
/** Prefers current inbound thread ids, falling back to persisted session thread metadata. */
function resolveRoutedDeliveryThreadId(params) {
	if (params.ctx.MessageThreadId != null) return params.ctx.MessageThreadId;
	if (params.ctx.TransportThreadId != null) return params.ctx.TransportThreadId;
	return parseSessionThreadInfoFast(params.sessionKey).threadId;
}
//#endregion
export { stripExtractedFileImageMetadata as n, resolveRoutedDeliveryThreadId as t };
