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