/** * Encode/decode Terraform DynamicValue fields. * * Terraform always sends state as msgpack; we always respond with msgpack. * The JSON field in DynamicValue is a fallback we also handle on read. * * Terraform's msgpack encoding of "unknown" is the extension type 0 with * a single zero byte (msgpack ext8 with type=0, data=0x00). */ import type { DynamicValue } from "../gen/tfplugin6.js"; /** Decode a DynamicValue into a plain JS object (or null for null/empty). */ export declare function readDynamicValue(dv: DynamicValue): Record | null; /** Encode a plain JS object (or null) into a DynamicValue using msgpack. */ export declare function toDynamicValue(value: Record | null): DynamicValue; /** Convert SDK DiagnosticItem[] to proto Diagnostic[] */ import type { DiagnosticItem } from "./interfaces.js"; import type { Diagnostic } from "../gen/tfplugin6.js"; export declare function diagsToPb(items: DiagnosticItem[]): Diagnostic[]; //# sourceMappingURL=encoding.d.ts.map