import { z } from "zod"; /** The file the shell runs for `name`, like `which`. */ export declare function onPath(name: string, pathDirs: string): string[]; /** The folders directly inside `dir`, sorted by name, or none when `dir` doesn't exist. */ export declare function subfolders(dir: string): string[]; /** The first line a CLI prints for `--version`. */ export declare function versionOf(cli: string): Promise; /** Runs a command and resolves to whether it succeeded and everything it printed. */ export declare function run(command: string, args: string[]): Promise<{ ok: boolean; output: string; }>; /** Runs a command and resolves to its stdout, or null when it can't be started. */ export declare function capture(command: string, args: string[]): Promise; /** Fetches a JSON file from GitHub, or resolves to null when it can't, reporting why to Sentry. */ export declare function fetchGitHubJson(path: string): Promise; /** Parses a JSON list from a harness CLI, or returns null and reports to Sentry when it isn't JSON or doesn't match. */ export declare function parseList(schema: z.ZodType, list: string, command: string): T | null; /** Pads each column to its widest cell and indents every row. */ export declare function formatRows(rows: string[][], indent?: string): string[]; //# sourceMappingURL=utils.d.ts.map