/** * Predicate union-narrowing guard emission for if-statements. * Handles predicate guards (`if (isUser(account)) { ... }`). */ 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; /** * Try to emit a predicate guard narrowing for `if (isUser(account)) { ... }`. * Returns undefined if the condition is not a matching predicate call. */ export declare const tryEmitPredicateGuard: (stmt: IfStatement, context: EmitterContext) => GuardResult; export {}; //# sourceMappingURL=if-emit-predicate-guards.d.ts.map