UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

30 lines 927 B
/** * Symbol used to define custom serialization for user-defined class instances. * The static method should accept an instance and return serializable data. * * @example * ```ts * import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde'; * * class MyClass { * constructor(public value: string) {} * * static [WORKFLOW_SERIALIZE](instance: MyClass) { * return { value: instance.value }; * } * * static [WORKFLOW_DESERIALIZE](data: { value: string }) { * return new MyClass(data.value); * } * } * ``` */ export declare const WORKFLOW_SERIALIZE: unique symbol; /** * Symbol used to define custom deserialization for user-defined class instances. * The static method should accept serialized data and return a class instance. * * @see WORKFLOW_SERIALIZE for usage example */ export declare const WORKFLOW_DESERIALIZE: unique symbol; //# sourceMappingURL=index.d.ts.map