import { stripGitGlobalOptionsForPolicy } from './git-global-options.mts'; export { stripGitGlobalOptionsForPolicy }; /** * The scripts the git, hook-bypass, and dev-server policies read: the command text, each heredoc * body a shell may read as its script, and each substitution an unquoted-delimiter body runs, each * with the `bash -c` scripts nested in it. Any other heredoc body is data (a `git commit -F -` * message). * * Substitutions in the command text itself (`echo $(...)`) are not scanned: callers must also run * `extractShellCommandSubstitutions` and inspect each result. */ export declare function commandsToInspectForGitPolicy(command: string): string[]; /** The same list with quoted refs readable; it too skips `$(...)` in the command text. */ export declare function commandsToInspectPreservingQuotes(command: string, options?: { keepGitGlobalOptions?: boolean; }): string[]; export type ShellCommandArgument = { command: string; inheritsEditor: boolean; }; export declare function extractShellCommandArguments(command: string): ShellCommandArgument[]; export declare function shellCommandInheritsEditor(command: string, shellCommandIndex: number): boolean; export declare function isInteractiveRebaseContinue(command: string): boolean; export declare function envPrefixSetsEditor(prefix: string): boolean; /** Blanks quoted text. It does not look inside `$(...)`; see `extractShellCommandSubstitutions`. */ export declare function stripQuotedShellText(command: string): string;