import { sendMessage } from "../messages/port"; import { OWN_DATA_TYPES } from "../constants"; import type { MessageListener } from "../types"; declare const DATA_TYPE_FILE_TRANSFER = "file-transfer"; declare const ERROR_PREFIX = "[pui-partner-comm]"; declare const TRACK_MESSAGE = "file_transfer_message"; declare const LOG_LEVEL_WARN = "warn"; declare const IFRAME_MESSAGE_SCHEMA_VERSION = "1.0.0"; declare function track(id: string, message: string, context?: Record): void; declare function pushError(id: string, error: Error, context?: Record): void; declare function pushLog(id: string, messages: string[], context?: Record): void; declare function getInstance(id?: string): { instanceId: string; sendMessage: typeof sendMessage; }; export { DATA_TYPE_FILE_TRANSFER, ERROR_PREFIX, LOG_LEVEL_WARN, TRACK_MESSAGE, OWN_DATA_TYPES, IFRAME_MESSAGE_SCHEMA_VERSION, getInstance, pushError, pushLog, track, }; export type SendMessage = (msg: Record, transferables?: ArrayBuffer[]) => void; export type OnMessage = MessageListener;