import { type Stats } from "node:fs"; import type { SyncReport } from "./sync-engine.js"; export declare const LONG_TASK_HOOK_TRUST_REVIEW_NOTICE = "Codex Hook review required: open /hooks and trust the current Tiny Context project Hook before relying on PreToolUse, SubagentStart, SessionStart or Stop behavior. Tiny Context cannot observe or persist Codex Hook trust."; export interface LongTaskHookFileOperations { lstat(target: string): Promise; readFile(target: string, encoding: "utf8"): Promise; mkdir(target: string, options: { recursive: true; }): Promise; writeFile(target: string, content: string, options: { flag: "wx"; }): Promise; rename(source: string, destination: string): Promise; rm(target: string, options: { force: true; }): Promise; randomId(): string; } export declare function installLongTaskHooks(projectRoot: string, report: SyncReport, fileOperations?: Partial): Promise; export declare function uninstallLongTaskHooks(projectRoot: string, report: SyncReport, fileOperations?: Partial): Promise; export declare function packageOwnedCommand(entry: string): string; export declare function removeManagedHookEntries(groups: unknown, currentPackageCommand?: string): { groups: unknown[]; removed: number; }; export declare function isManagedHookEntry(entry: unknown, currentPackageCommand?: string): boolean;