| 1 |
import { ScalarType } from "../descriptors.js"; |
| 2 |
/** |
| 3 |
* Return the TypeScript type (as a string) for the given scalar type. |
| 4 |
*/ |
| 5 |
export declare function scalarTypeScriptType(scalar: ScalarType, longAsString: boolean): "string" | "boolean" | "bigint" | "bigint | string" | "Uint8Array" | "number"; |
| 6 |
/** |
| 7 |
* Return the JSON type (as a string) for the given scalar type. |
| 8 |
*/ |
| 9 |
export declare function scalarJsonType(scalar: ScalarType): "string" | "boolean" | "number" | `number | "NaN" | "Infinity" | "-Infinity"`; |