import { type PathLike } from "fs"; /** * fs/promises에는 exists가 없어요. 대신 access가 있습니다. * 근데 얘는 인터페이스가 쓰기 불편해요. 그래서 감싸주었습니다. * @param path * @returns */ export declare function exists(path: PathLike): Promise; export declare function fileExists(path: PathLike): Promise; /** * 파일을 복사하면서 `from "sonamu"` import를 sonamu.shared.ts 경로로 치환합니다. * * web이나 app 등에는 sonamu 패키지가 없으므로, 함께 복사되는 sonamu.shared.ts에서 가져오도록 변환합니다. * 대상 파일의 위치에 따라 상대 경로가 달라집니다: * - services/sonamu.generated.ts → ./sonamu.shared * - services/user/user.types.ts → ../sonamu.shared * - i18n/ko.ts → ../services/sonamu.shared * * ts/tsx 파일은 쓰기 전에 oxfmt/oxlint 한번 돌려줍니다! * * @param fromPath 원본 파일 경로 * @param toPath 대상 파일 경로 * @param syncHeader 동기화 시 파일 최상단에 삽입할 주석 블록. 기존 @generated 블록이 있으면 교체하고, 없으면 최상단에 추가합니다. * @returns 파일을 썼으면 true, 건너뛰었으면 false */ export declare function copyFileWithReplaceCoreToShared(fromPath: string, toPath: string, syncHeader?: string): Promise; //# sourceMappingURL=fs-utils.d.ts.map