/** * Pure simctl argv builders. No I/O. * * SECURITY: All builders return string[] for execFileSync — no shell parsing. * Predicate strings and paths travel as distinct argv slots. */ export interface LogShowOptions { predicate?: string; level?: "debug" | "info" | "default" | "error" | "fault"; } /** * Build argv for `simctl spawn log show ...`. */ export declare function buildLogShowArgs(device: string, lastWindow: string, options?: LogShowOptions): string[]; /** * Build argv for app-scoped log query (predicate = subsystem == ""). * Caller must validate bundleId BEFORE calling this builder. */ export declare function buildAppLogArgs(device: string, bundleId: string, lastWindow?: string): string[]; /** * Split a whitespace-separated command into argv tokens. * Safe only for commands without quoted strings / spaces inside args. */ export declare function splitArgs(command: string): string[]; /** * Slice the last `n` lines from a newline-delimited string. * Node-side replacement for `| tail -n` (no shell needed). */ export declare function sliceLastLines(text: string, n: number): string; /** * Coerce a lat/lon pair into finite numbers; throw on NaN/Infinity. * Returns the canonical `lat,lon` argument string expected by `simctl location set`. */ export declare function formatLatLon(lat: number, lon: number): string; //# sourceMappingURL=simctl-commands.d.ts.map