/** 자격증명 파일 권한 — 소유자만 읽고 쓴다. */ export declare const CREDENTIAL_FILE_MODE = 384; /** 자격증명 디렉터리 권한 — 소유자만 진입한다. */ export declare const CREDENTIAL_DIR_MODE = 448; export interface AtomicWriteOptions { /** * 최종 파일 권한. temp 파일에 **rename 전에** 적용하므로, 파일이 대상 경로에 나타나는 * 첫 순간부터 이 권한이다 — write 후 chmod 하는 방식에 있던 "잠깐 0644" 창이 없다. * 기존 파일을 덮어쓸 때도 inode 가 통째로 갈리므로 느슨한 권한이 자동으로 교정된다. */ mode?: number; /** 상위 디렉터리를 만들 때 쓸 권한. 이미 있으면 건드리지 않는다. */ dirMode?: number; } export declare function writeFileAtomic(filePath: string, contents: string, options?: AtomicWriteOptions): void; export declare function writeJsonAtomic(filePath: string, value: unknown, options?: AtomicWriteOptions): void; /** 자격증명 JSON 저장 — 0600 파일 / 0700 디렉터리를 강제한다. */ export declare function writeCredentialJson(filePath: string, value: unknown): void; /** 이미 직렬화된 자격증명(서비스 계정 키 원본 등) 저장. */ export declare function writeCredentialFile(filePath: string, contents: string): void;