export declare const DEFAULT_NATIVE_ARTIFACT_MAX_BYTES: number; export interface NativeBoundedFileReadHooks { afterParentChainCaptured?: () => void | Promise; afterOpen?: () => void | Promise; beforeFinalCheck?: () => void | Promise; } export interface NativeBoundedTextFile { ref: string; size: number; hash: string; text: string; } export interface NativeUnhashedTextFile extends Omit { hash: null; } export interface NativeTextFilePrefix { ref: string; size: number; text: string; truncated: boolean; } interface NativeTextFileReadOptions { root: string; ref: string; maxBytes?: number | null; includeHash?: boolean; hooks?: NativeBoundedFileReadHooks; } interface NativeTextFilePrefixReadOptions { root: string; ref: string; maxBytes: number; hooks?: NativeBoundedFileReadHooks; } export declare function readNativeBoundedTextFile(options: NativeTextFileReadOptions & { includeHash: false; }): Promise; export declare function readNativeBoundedTextFile(options: NativeTextFileReadOptions & { includeHash?: true; maxBytes?: number; }): Promise; /** * Read a display prefix without making the file's total size the read budget. * The returned size comes from the verified open file, while at most maxBytes * are read into memory. */ export declare function readNativeTextFilePrefix(options: NativeTextFilePrefixReadOptions): Promise; export {}; //# sourceMappingURL=native-bounded-file.d.ts.map