/** * Codex hooks install/uninstall/status commands. * * Installs agent-awareness hook entries in either: * - Global Codex config file: ~/.codex/config.toml (default) * - Project-local hooks file: ./.codex/hooks.json (optional) * * Also enables/disables the stable hooks feature flag via Codex CLI. */ export type HooksScope = 'global' | 'project'; export interface CodexHooksOptions { scope?: HooksScope; fallbackToProject?: boolean; quiet?: boolean; } export declare function resolveCodexHome(env?: NodeJS.ProcessEnv, home?: string): string; export declare function resolveHooksJsonPath(scope: HooksScope, cwd?: string, env?: NodeJS.ProcessEnv, home?: string): string; export declare function resolveCodexConfigTomlPath(env?: NodeJS.ProcessEnv, home?: string): string; export declare function removeAgentAwarenessHooksFromConfigTomlText(text: string): string; export declare function removeDeprecatedCodexHooksFeatureFlagFromConfigTomlText(text: string): string; export declare function codexHooksFeatureAvailable(): Promise; export declare function codexHooksFeatureEnabled(): Promise; export declare function codexHooksInstall(options?: CodexHooksOptions): Promise; export declare function codexHooksUninstall(options?: CodexHooksOptions): Promise; export declare function codexHooksStatus(options?: CodexHooksOptions): Promise;