/**
 * AsyncIO -- Non-blocking file I/O wrappers for governance modules.
 *
 * Provides async versions of common file operations used across
 * the governance framework. Prevents blocking the event loop
 * during heavy audit/log writes.
 *
 * T-027: Async I/O for file-based operations.
 *
 * @connexum/ai-governance
 */
import * as fs from 'fs';
/**
 * Ensure a directory exists (async).
 */
export declare function ensureDirAsync(dir: string): Promise<void>;
/**
 * Append a JSON line to a JSONL file (async).
 */
export declare function appendJsonlAsync(filePath: string, data: unknown): Promise<void>;
/**
 * Read all lines from a JSONL file (async).
 */
export declare function readJsonlAsync<T = unknown>(filePath: string): Promise<T[]>;
/**
 * Load a JSON file (async).
 */
export declare function loadJsonAsync<T = unknown>(filePath: string): Promise<T | null>;
/**
 * Save a JSON file (async, atomic via temp file + rename).
 */
export declare function saveJsonAsync(filePath: string, data: unknown): Promise<void>;
/**
 * Compute SHA-256 hash of a file (async, streaming).
 */
export declare function sha256FileAsync(filePath: string): Promise<string>;
/**
 * Read new bytes from a file starting at offset (async).
 * Returns the new content and the new offset.
 */
export declare function readFromOffsetAsync(filePath: string, offset: number): Promise<{
    content: string;
    newOffset: number;
}>;
/**
 * Read the last N lines from a file (async).
 */
export declare function readLastLinesAsync(filePath: string, n: number): Promise<string[]>;
/**
 * Check if a file exists (async).
 */
export declare function fileExistsAsync(filePath: string): Promise<boolean>;
/**
 * Get file stats (async). Returns null if file doesn't exist.
 */
export declare function fileStatsAsync(filePath: string): Promise<fs.Stats | null>;
//# sourceMappingURL=async-io.d.ts.map