/** * The detached runner's second transport: a foreign command (`ipatool`, say) * that owns its own network, naming and output. * * Reached from `runner.ts` when the payload says `kind: "command"`, so a * consumer still copies one runner file. Runs outside Raycast: MUST NOT import * `@raycast/api`, and everything it imports is inlined by the bundler. * * What this runner can and cannot know is the shape of the whole module. It * cannot see the bytes, so it cannot verify them: success is the exit code. * It cannot see the filenames up front, so progress and cleanup select files * by the prefix and suffixes the caller declared. And it cannot parse the * command's output, so it captures it to files the caller reads afterward. */ import { type FileMatch } from "./command-files"; import { type NotifyOption } from "./notify"; export type CommandProgress = { kind: "watchFiles"; dir: string; namePrefix: string; suffixes: string[]; /** * For display only: becomes `totalBytes`. NOT a completeness check, unlike * `startDownload`'s `expectedBytes` — success is the exit code, and the * finished file may legitimately be larger or smaller than this. */ expectedBytes?: number; } | { kind: "stdoutPattern"; pattern: string; }; export interface CommandRunnerPayload { kind: "command"; id: string; statusDir: string; filename: string; argv: string[]; cwd?: string; env?: Record; progress?: CommandProgress; successExitCodes?: number[]; resolveOutput?: { kind: "newestMatch"; dir: string; namePrefix: string; suffix: string; }; cleanupOnFailure?: FileMatch[]; stallSeconds?: number; maxSeconds?: number; meta?: Record; notifyOnFinish?: NotifyOption; stdoutPath: string; stderrPath: string; } export declare function runCommand(payload: CommandRunnerPayload): void; //# sourceMappingURL=command-runner.d.ts.map