import type { MessageAttachment } from "../state/protocol/state.js"; export interface IAttachmentDetail { readonly type: string; readonly raw: Record; readonly text?: string; readonly url?: string; } export declare function readAttachmentDetail(attachment: Pick): IAttachmentDetail | undefined; export declare function withAttachmentDetail(attachment: T, detail: Record): T;