/** * `.aih/usage-record.mjs` — a tiny, dependency-free Node recorder. Hooks invoke it * as `node .aih/usage-record.mjs [name] [source|server]` and it * appends ONE JSON event to `.aih/usage.jsonl`. For `commit` it derives LOC from * `git show --numstat HEAD` itself, so the git hook stays a one-liner. */ export declare function usageRecorderScript(): string; /** * `.git/hooks/post-commit` — the UNIVERSAL floor. Works for every AI tool (and * hand-written code) because it keys off the commit, not the agent. Records commit * activity (LOC/files) with no tool attribution and triggers the history snapshot * behind report trends. Never blocks the commit. */ export declare function gitPostCommitHook(): string; /** * A CHAINABLE capture block to append to an EXISTING `post-commit` hook (aih never * overwrites a user's hook). Namespaced var, no `exit`, `|| true` everywhere — so it * slots into the middle of someone else's hook without short-circuiting or failing it. */ export declare function gitPostCommitChainSnippet(opts?: { usage?: boolean; track?: boolean; }): string;