import type { JsonValue, Transition } from '@fun-xyz/fiat-contract/types'; export type FiatBodyErrorCode = 'KEY_COLLISION' | 'MISSING_SURFACE_RESULT'; export declare class FiatBodyError extends Error { readonly code: FiatBodyErrorCode; readonly keys: string[]; constructor(code: FiatBodyErrorCode, message: string, keys?: string[]); } /** Values the user typed or picked, keyed by the transition's input name. */ export type CollectedInputs = Record; /** What a client surface handed back, e.g. `{ requestId }` from the pay sheet. */ export type SurfaceResult = Record; export interface AssembleBodyParams { transition: Transition; collected?: CollectedInputs; surfaceResult?: SurfaceResult; /** Address that receives crypto from a new order. */ depositAddress?: string; } /** Builds a body from the fields declared by a transition. */ export declare function assembleBody({ transition, collected, surfaceResult, depositAddress, }: AssembleBodyParams): Record | undefined; //# sourceMappingURL=submitBody.d.ts.map