import type { Message, Messages, ProjectionPatch, State } from "../types"; /** * Binds message names and data * @param name the message name * @param data the message payload * @returns The bound message */ export declare const bind: (name: N, data: Readonly) => Message; /** * Shortcut to return promise of [bind] */ export declare const emit: (name: N, data: Readonly) => Promise[]>; /** * Shortcut to return promise of command message */ export declare const cmd: (name: N, data: Readonly, stream: string, expectedVersion?: number) => Promise>; /** * Shortcut to return promise of projection patches */ export declare const prj: (...patches: ProjectionPatch[]) => Promise[]>; //# sourceMappingURL=binding.d.ts.map