/** * Array.isArray and typeof guard emission cases for if-statements. * Handles Array.isArray guards and typeof guards. */ import { IrStatement } from "@tsonic/frontend"; import { EmitterContext } from "../../../types.js"; import type { CSharpStatementAst } from "../../../core/format/backend-ast/types.js"; type IfStatement = Extract; type GuardResult = [readonly CSharpStatementAst[], EmitterContext] | undefined; /** * Array.isArray guard emission. * Handles `if (Array.isArray(x)) { ... }` and `if (!Array.isArray(x)) { ... }`. */ export declare const tryEmitArrayIsArrayGuard: (stmt: IfStatement, context: EmitterContext) => GuardResult; /** * Case E: typeof narrowing on plain locals/parameters, including * compound `&&` truthy branches and `||` fallthrough/else branches. */ export declare const tryEmitTypeofGuard: (stmt: IfStatement, context: EmitterContext) => GuardResult; export {}; //# sourceMappingURL=if-emit-typeof-array-guards.d.ts.map