import { NodeDefinition, NodeLike, StatelessGraphNode, StatelessNodeDefinition, StatelessNodeType } from '../../types/graph'; /** * An instance of the [[fromBase64]] node. * See the [[fromBase64]] documentation to find out more. */ export interface FromBase64Node extends StatelessGraphNode<'from-base64', FromBase64NodeProperties> { } /** * A definition of the [[fromBase64]] node. * See the [[fromBase64]] documentation to find out more. */ export interface FromBase64NodeDefinition extends StatelessNodeDefinition<'from-base64', FromBase64NodeProperties> { } export interface FromBase64NodeProperties { subject: NodeDefinition; } /** * The implementation of the [[fromBase64]] node. * See the [[fromBase64]] documentation to learn more. */ export declare const FromBase64NodeType: StatelessNodeType<'from-base64', FromBase64NodeProperties>; /** * Creates a new instance of a [[fromBase64]] node, which is used when converting a base64 encoded string back to a normal string. * The node expects the subject to be a [[value]] that contains a string value. * * * @example **Convert the string back from Base64** * ```js * import muster, { fromBase64 } from '@dws/muster'; * * const app = muster({}); * * await app.resolve(fromBase64('SGVsbG8gd29ybGQ=')); * // === 'Hello world' * ``` * This example shows how to convert a base 64 encoded string to a string. */ export declare function fromBase64(subject: NodeLike): FromBase64NodeDefinition; export declare function isFromBase64NodeDefinition(value: NodeDefinition): value is FromBase64NodeDefinition;