import { NodeDefinition, NodeLike, StatefulGraphNode, StatefulNodeDefinition, StatefulNodeType } from '../../types/graph'; /** * An instance of the [[takeLast]] node. * See the [[takeLast]] documentation to find out more. */ export interface TakeLastNode extends StatefulGraphNode<'takeLast', TakeLastNodeProperties> { } /** * A definition of the [[takeLast]] node. * See the [[takeLast]] documentation to find out more. */ export interface TakeLastNodeDefinition extends StatefulNodeDefinition<'takeLast', TakeLastNodeProperties> { } export interface TakeLastNodeProperties { operations: Array; } export interface TakeLastNodeState { } export interface TakeLastNodeData { unsubscribe: () => void; } /** * The implementation of the [[takeLast]] node. * See the [[takeLast]] documentation to learn more. */ export declare const TakeLastNodeType: StatefulNodeType<'takeLast', TakeLastNodeProperties, TakeLastNodeState, TakeLastNodeData>; /** * Creates a new instance of a [[takeLast]] node, which works in a similar way to the `series` node, but instead of * resolving all `operations` as its dependencies, it subscribes to all of them through the store. This prevents * these operations from being added to the dependency chain of the [[takeLast]] node. * This node is internally used by the [[proxy]] node to disconnect the middleware subscription from the output of the * [[proxy]] node. */ export declare function takeLast(operations: Array): TakeLastNodeDefinition; export declare function isTakeLastNodeDefinition(value: NodeDefinition): value is TakeLastNodeDefinition;