import { MessageProcessor, ProcessingPayload } from '@hawk.so/core'; import { ConsoleCatcher } from './consoleCatcher'; /** * Attaches captured console output to payload addons. */ export declare class ConsoleOutputAddonMessageProcessor implements MessageProcessor<'errors/javascript'> { private readonly consoleCatcher; /** * Stores catcher reference and starts console interception. * * @param consoleCatcher - console catcher instance to read logs from */ constructor(consoleCatcher: ConsoleCatcher); /** * Attaches current console log stack to `payload.addons.consoleOutput`. * Skips if log stack is empty. * * @param payload - event message payload to enrich * @returns modified payload with console logs attached, or original payload unchanged */ apply(payload: ProcessingPayload<'errors/javascript'>): ProcessingPayload<'errors/javascript'> | null; }