/** * Post-emission adaptation helpers for nullish type-parameter casting, * nullable value-type unwrapping, and char-to-string conversion. */ import { type IrExpression, type IrType } from "@tsonic/frontend"; import { EmitterContext } from "../types.js"; import type { CSharpExpressionAst } from "../core/format/backend-ast/types.js"; export declare const maybeCastNullishTypeParamAst: (expr: IrExpression, ast: CSharpExpressionAst, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; export declare const maybeUnwrapNullableValueTypeAst: (expr: IrExpression, ast: CSharpExpressionAst, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; export declare const maybeConvertCharToStringAst: (expr: IrExpression, ast: CSharpExpressionAst, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; export declare const isExpectedIntegralIrType: (type: IrType | undefined, context: EmitterContext) => boolean; export declare const isNumericSourceIrType: (type: IrType | undefined, context: EmitterContext) => boolean; export declare const isNumericFactoryCreateCheckedAst: (ast: CSharpExpressionAst, expectedType: IrType | undefined, context: EmitterContext) => boolean; export declare const simplifyRedundantObjectBridgeCastsAst: (ast: CSharpExpressionAst, actualType: IrType | undefined, context: EmitterContext, expectedType: IrType | undefined) => CSharpExpressionAst; export declare const maybeCastNumericToExpectedIntegralAst: (ast: CSharpExpressionAst, actualType: IrType | undefined, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; export declare const isExpectedJsNumberIrType: (type: IrType | undefined, context: EmitterContext) => boolean; export declare const maybeCastNumericToExpectedJsNumberAst: (ast: CSharpExpressionAst, actualType: IrType | undefined, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; export declare const maybeBoxJsNumberAsObjectAst: (ast: CSharpExpressionAst, expr: IrExpression | undefined, actualType: IrType | undefined, context: EmitterContext, expectedType: IrType | undefined) => [CSharpExpressionAst, EmitterContext]; //# sourceMappingURL=post-emission-adaptation.d.ts.map