import type { FabricProgramKernel } from "./store.js"; /** JSON value as a Python literal (JSON string escapes are valid Python). */ export declare const pythonLiteral: (value: unknown) => string; /** * TypeScript keeps line numbers by declaring `input` on the program's first * line; Python cannot join a compound statement after `;`, so it gets its own * line. */ export declare const programSourceWithInput: (code: string, kernel: FabricProgramKernel, input: unknown) => string; /** Lowercase hex SHA-256 of the text's UTF-8 bytes. */ export declare const sha256Hex: (text: string) => string; /** * Identity of caller-supplied code in the trace and reply: `caller-code:`. * The colon is outside `PROGRAM_NAME_PATTERN`, so no saved program can have this * ref. Within a run of that code it is also the `ref` that `programs.run` * resolves to the code. */ export declare const callerCodeProgram: (sha256: string) => string; /** Short label for the run's display name and transcript message. */ export declare const callerCodeLabel: (sha256: string) => string; /** A one-call host program that runs a saved program through `programs.run`. */ export declare const hostProgramRunSource: (kernel: FabricProgramKernel, args: { ref: string; input?: unknown; requirePromoted?: boolean; }) => string; //# sourceMappingURL=source.d.ts.map