/** * Extract the launch branch name from the portion of the command AFTER the * launch marker. Reproduces the bash positional parser: * - `--handoff ` consumes two tokens (never shifts the branch position) * - `--kill` marks a pure-kill (no new task ⇒ no record) * - `--test` / `--kill-and-relaunch` / any other `--flag` (including the `--` * passthrough separator) are skipped * - remaining tokens are positional; positional[1] is the branch * * Returns null when this is a pure-kill or there is no branch positional. */ export declare function extractBranch(afterMarker: string): string | null; /** * Parse a hook-JSON payload and, when it is a launch invocation with a branch, * write the session provenance file. Pure of stdin/exit handling so it can be * unit-tested. Never throws for expected "ignore" cases — returns silently. */ export declare function processHookInput(input: string): Promise; /** * `hula session-hook` entrypoint. Always resolves to exit code 0 — a capture * failure must never block the tool call. * * @param _argv unused; the hook reads its input from stdin. */ export declare function runSessionHook(_argv: string[]): Promise; //# sourceMappingURL=session-hook.d.ts.map