import { ZeniAPIResponse } from '../../../responsePayload'; import { FilePayload } from '../../file/filePayload'; import { Attachment } from '../stateTypes/attachment'; export interface AttachmentPayload { attachment_create_time: string; attachment_id: string | null; attachment_update_time: string; content_type: string; file_checksum: string | null; file_download_url: string; file_name: string; file_size: number; file_id?: string; } export declare const toAttachment: (payload: AttachmentPayload) => Attachment; export declare const mapFileToAttachment: (payload: FilePayload) => Attachment; export interface AttachmentViewPayload { transaction_attachments: AttachmentPayload[]; } export type AttachmentViewResponse = ZeniAPIResponse;