"use strict";
/**
 * Type definitions for external apps module
 * Issue #42: Proxy routing for multiple frontend applications
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWorktreeExternalApp = isWorktreeExternalApp;
/**
 * Type guard to check if an ExternalApp is a WorktreeExternalApp
 * Issue #136: Helper for type narrowing
 *
 * @param app - The external app to check
 * @returns true if the app has a valid issueNo
 *
 * @example
 * ```typescript
 * const app = getExternalAppById('some-id');
 * if (isWorktreeExternalApp(app)) {
 *   // TypeScript knows app.issueNo is number
 *   console.log(`Worktree for issue #${app.issueNo}`);
 * }
 * ```
 */
function isWorktreeExternalApp(app) {
    return typeof app.issueNo === 'number' && app.issueNo > 0;
}
