import { StringBoolIR } from "../../types.js"; import { CodeGenContext, SlowGen } from "../context.js"; //#region src/core/codegen/schemas/string-bool.d.ts declare function slowStringBool(ir: StringBoolIR, g: SlowGen): string; declare function stringBoolUsesInline(ir: StringBoolIR): boolean; /** * Boolean expression: is `input` verbatim one of an INLINE codec's spellings? * * The accepted lists come from probing the schema with lowercase candidates * (see extractStringBool), so for a case-insensitive codec an exact hit is * exactly what `input.toLowerCase()` would have produced — and a handful of * `===` on internalized strings is cheaper than the `toLowerCase()` call. The * hashed form has no use for this: there the verbatim `Map.get` IS the lookup, * retried on the lowercased string only when it misses. */ declare function stringBoolInlineHit(ir: StringBoolIR, input: string): string; /** One lookup distinguishes true, false and absent; shared by hot and issue walks. */ declare function emitStringBoolMap(ir: StringBoolIR, ctx: CodeGenContext): string; //#endregion export { emitStringBoolMap, slowStringBool, stringBoolInlineHit, stringBoolUsesInline }; //# sourceMappingURL=string-bool.d.ts.map