/// <reference types="react" />
import { ChatAttachmentModel } from '../../store';
export declare const useChatAttachment: (attachment: ChatAttachmentModel, getAttachmentLocation: (fileId: string) => Promise<string | undefined>) => {
    anchorRef: import("react").RefObject<HTMLAnchorElement>;
    isAttachmentLoading: boolean;
    hasAttachmentError: boolean;
    attachmentUrl: string;
    downloadAttachment: () => Promise<void>;
};
