import { MessageAttachment } from '@slack/types'; declare enum ERecordLevel { trace = 10, debug = 20, info = 30, warn = 40, error = 50, fatal = 60 } export default class BunyanSlack { webhookUrl: string; channel?: string; username?: string; iconUrl?: string; iconEmoji?: string; customFormatter: (record: T, levelName: keyof typeof ERecordLevel) => { text: string; } | { attachments: MessageAttachment[]; }; onError: (err: unknown) => void; constructor(options: Omit, 'write' | 'customFormatter' | 'onError'> & { customFormatter?: BunyanSlack['customFormatter']; onError?: BunyanSlack['onError']; }); write(record: Object): Promise; } export {};