import { type UploadProgress } from '@operato/graphql'; export interface AttachmentResult { id: string; name: string; mimetype?: string; size?: number; path?: string; category?: string; createdAt?: string; } /** * 단일 파일을 Attachment 로 등록 — graphql-upload (Apollo client multipart) 사용. * file 은 Browser File 객체. 결과로 새 Attachment id / 메타데이터 반환. * * board-import wizard 가 사용 — 이후 importBoardAsync(attachmentId=result.id) 로 변환 시작. * progress 를 주면 올라간 정도(0‒1)를 알려 준다 — 선택기가 그것을 보인다. */ export declare function createAttachmentForImport(file: File, progress?: UploadProgress): Promise; /** * 기존 attachment 목록 조회 — wizard upload 스텝의 "기존 파일 선택" 탭에서 사용. * 도메인 스코프 내 attachment 만 반환되는 건 attachment-base resolver 가 보장. * * @param search 파일명 부분 일치 (선택) * @param mimetypePrefix 'image' | 'application' 등 — wizard 는 이미지/dxf 만 보여주려고 사용 * @param page / limit 페이지네이션 (기본 1, 50) */ export declare function fetchAttachmentsForImport(options: { search?: string; mimetypePrefix?: string; page?: number; limit?: number; }): Promise<{ items: AttachmentResult[]; total: number; }>;