import { type PostcodeSearchModalTipProps } from './PostcodeSearchModalTip'; /** 검색 결과 아이템 하나. */ interface PostcodeSearchResult { /** 우편번호(5자리) */ zipCode: string; /** 도로명주소(도로명 + 건물번호 + 참고항목 등) */ roadAddress: string; /** 지번주소 */ jibunAddress: string; } /** * 컴포넌트가 표시할 수 있는 에러코드(행정안전부 도로명주소 API 기준). * 기획서에 직접 적힌 코드는 E0006·E0008·E0009·E0012·E0013 이고, * E0010·E0011 은 기획서의 "E0009~E0013 통합" 범위 표기에서 채운 값이다. */ type PostcodeSearchErrorCode = 'E0006' | 'E0008' | 'E0009' | 'E0010' | 'E0011' | 'E0012' | 'E0013'; interface PostcodeSearchModalProps { open: boolean; onClose: () => void; zIndex?: number; className?: string; searchQuery: string; onSearchQueryChange: (value: string) => void; onSearch: () => void; results: PostcodeSearchResult[]; totalCount: number; currentPage: number; onPageChange: (page: number) => void; /** 페이지당 아이템 수. 기획서 기본값 15 */ pageSize?: number; /** 검색 API 응답을 기다리는 중인지 여부. 응답 전에 "결과 없음" 이 먼저 뜨는 것을 막는다. */ loading?: boolean; errorCode?: PostcodeSearchErrorCode; onSelect: (result: PostcodeSearchResult) => void; } declare const PostcodeSearchModal: { ({ open, onClose, zIndex, className, searchQuery, onSearchQueryChange, onSearch, results, totalCount, currentPage, onPageChange, pageSize, loading, errorCode, onSelect, }: PostcodeSearchModalProps): import("react/jsx-runtime").JSX.Element; displayName: string; Tip: { ({ className }: PostcodeSearchModalTipProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; }; export { PostcodeSearchModal }; export type { PostcodeSearchErrorCode, PostcodeSearchModalProps, PostcodeSearchModalTipProps, PostcodeSearchResult };