/** * Terminate a running iOS app on a simulator * * Examples: * - Terminate app: udid: "device-123", bundleId: "com.example.MyApp" * * Gracefully terminates the specified app. If the app is not running, * returns an error but can be safely ignored. * * **Full documentation:** See simctl/terminate.md for detailed parameters and examples */ export declare function simctlTerminateTool(args: any): Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; }>; export declare const SIMCTL_TERMINATE_DOCS = "\n# simctl-terminate\n\nGracefully terminate a running iOS app on a simulator.\n\n## What it does\n\nStops a running app by sending a termination signal. The app's lifecycle methods\n(applicationWillTerminate:) will be called, allowing clean shutdown.\n\n## Parameters\n\n- **udid** (string, required): Simulator UDID (from simctl-list)\n- **bundleId** (string, required): App bundle ID (e.g., com.example.MyApp)\n\n## Returns\n\nJSON response with:\n- Termination status\n- Command executed\n- Guidance for next steps (relaunching, uninstalling, checking container)\n\n## Examples\n\n### Terminate running app\n```typescript\nawait simctlTerminateTool({\n udid: 'device-123',\n bundleId: 'com.example.MyApp'\n})\n```\n\n## Common Use Cases\n\n1. **Clean app restart**: Terminate then relaunch to reset app state\n2. **Test lifecycle**: Verify app handles termination correctly\n3. **Memory cleanup**: Stop app before running memory-intensive tests\n4. **State reset**: Terminate app to clear runtime state between test runs\n5. **Background testing**: Stop foreground app to test background behavior\n\n## Important Notes\n\n- **Graceful termination**: App lifecycle methods are called for clean shutdown\n- **Not running OK**: Returns error if app is not running, but can be safely ignored\n- **Simulator state**: Works on both booted and shutdown simulators\n- **No force kill**: This is a graceful termination, not a force kill\n\n## Error Handling\n\n- **App not running**: Error returned but operation is safe to ignore\n- **App not installed**: Indicates app must be installed first\n- **Simulator not booted**: Warning shown but termination may still succeed\n- **Invalid bundle ID**: Validates bundle ID format (must contain '.')\n\n## Next Steps After Termination\n\n1. **Launch app again**: `simctl-launch `\n2. **Uninstall app**: `simctl-uninstall `\n3. **Check app container**: `simctl-get-app-container `\n4. **Install new build**: `simctl-install /path/to/App.app`\n\n## Difference from Force Kill\n\n- **Terminate (this tool)**: Graceful shutdown with lifecycle callbacks\n- **Force kill**: Immediate termination without cleanup (use system kill command)\n"; //# sourceMappingURL=terminate.d.ts.map