type SetupStatus = 'changed' | 'failed' | 'unchanged'; interface SetupResult { readonly name: string; readonly detail: string; readonly status: SetupStatus; } export interface InstallContext { readonly dryRun: boolean; readonly results: SetupResult[]; readonly failures: string[]; } export interface TreeFile { readonly rel: string; readonly content: string; readonly mode?: number; } export declare function addResult(ctx: InstallContext, name: string, detail: string, status: SetupStatus): void; export declare function fail(ctx: InstallContext, name: string, detail: string): void; /** Replace the `dest` directory tree with the bundled `files`, cleaning extras. */ export declare function installTree(ctx: InstallContext, name: string, dest: string, files: readonly TreeFile[]): Promise; export declare function readTextIfExists(path: string): Promise; export {};