/**
 * Content-addressed blob writer for OutputRef-shaped fields.
 *
 * Used by run-init (params), runtime (prompts / outputs), and host
 * executors to persist payloads too large for the inline envelope cap.
 * The hash is over canonical bytes — caller is responsible for handing
 * us already-serialized content; we don't second-guess the format.
 */
import type { EventLog } from './events/append.js';
import type { OutputRef } from './events/payloads.js';
export type WriteBlobOptions = {
    contentType?: string;
    schemaVersion?: number;
};
/**
 * Write a buffer as a content-addressed blob and return the `OutputRef`
 * to embed in event payloads.  Idempotent: identical bytes produce the
 * same path; we just overwrite (same content, same result).
 */
export declare function writeBlob(log: EventLog, buf: Buffer, opts?: WriteBlobOptions): Promise<OutputRef>;
/**
 * Canonical-JSON variant: sorts keys recursively so semantically equal
 * inputs hash to identical blob paths.  Use this any time the hash will
 * be compared across runs / retries (e.g. idempotency-key derivation).
 */
export declare function writeJsonBlob(log: EventLog, value: unknown, opts?: WriteBlobOptions): Promise<OutputRef>;
//# sourceMappingURL=blob.d.ts.map