import type { AdaptiveCard } from './models.js'; /** * Serialize an {@link AdaptiveCard} to a JSON string. * * `undefined` values are automatically omitted by `JSON.stringify`. * Enum values are already the correct camelCase strings, so no custom * converter is needed — it just works. */ export declare function toJson(card: AdaptiveCard, indent?: number): string; /** * Return a clean plain object for an {@link AdaptiveCard}, with all * `undefined` properties stripped. * * Use this instead of {@link toJson} when you need a native object — for * example, to embed a card inside a larger API payload without double- * serializing. */ export declare function toObject(card: AdaptiveCard): AdaptiveCard; /** * Deserialize a JSON string to an {@link AdaptiveCard}. * * Because the Adaptive Card schema embeds a `type` discriminant on every * element, the parsed object already carries the right shape. TypeScript's * structural typing lets callers narrow with `element.type === 'TextBlock'` * etc. without needing class instances. * * Returns `null` when the input is empty or not a valid JSON object. */ export declare function fromJson(json: string): AdaptiveCard | null; //# sourceMappingURL=serialization.d.ts.map