import { LogLevel } from '@dynamic-labs/logger'; import { SerializedError } from '@dynamic-labs/message-transport'; export type ConsoleMessages = { error: (serializedError: SerializedError, props: { /** * Describes the severity of the error sent to the host. * fatal: The error has not been handled and the SDK is unusable. * log-only: The error has been handled but should still be logged. */ severity: 'fatal' | 'log-only'; }) => void; log: (level: LogLevel, message: string) => void; };