export declare const SHELL_SNIPPET_START = "# >>> stam cli >>>"; export declare const SHELL_SNIPPET_END = "# <<< stam cli <<<"; /** * A shell function that resolves `stam` to the CLI inside whatever Stamhoofd * clone or worktree the current directory belongs to. It walks up the directory * tree from $PWD until it finds shared/cli/bin/stam.js, so the same `stam` * command always runs the right checkout — including from any subdirectory. If * that checkout has never been built, it builds the CLI once before running. */ export declare function buildShellSnippet(): string; export type ShellKind = 'zsh' | 'bash'; export declare function detectShellKind(shellPath: string | undefined): ShellKind; export declare function defaultRcFile(shell: ShellKind, home?: string): string; export type InstallShellResult = { rcFile: string; action: 'created' | 'updated' | 'unchanged'; }; /** * Inserts or refreshes the `stam` shell function in the given rc file. The block * is delimited by marker comments so repeated runs stay idempotent and never * duplicate the function. */ export declare function installShellFunction(rcFile: string): Promise; /** * Sets up the `stam` shell shortcut so you can drop the `yarn` prefix. With * dryRun, prints the snippet instead of editing any file. */ export declare function setupShellShortcut(options?: { dryRun?: boolean; shell?: ShellKind; }): Promise; //# sourceMappingURL=setup-shell.d.ts.map