interface WriteOptions {
    mode?: number;
    encoding?: BufferEncoding;
}
/**
 * Create (or reuse) a directory and enforce safe permissions.
 */
export declare function ensureSecureDirectory(path: string, mode: number): Promise<void>;
/**
 * Append content to a file without following symbolic links.
 */
export declare function appendToSafeFile(filePath: string, content: string, mode?: number): Promise<void>;
/**
 * Write content atomically by writing a temp file and renaming.
 */
export declare function writeFileAtomic(filePath: string, content: string, options?: WriteOptions): Promise<void>;
/**
 * Read file content while rejecting symbolic-link targets.
 */
export declare function readSafeFile(filePath: string): Promise<string>;
export {};
