import { isoly } from "isoly"; import { Realm } from "../Realm"; export type Base = { realm?: Realm; organization?: string; account?: string; entity: string; entityType: string; action: Base.Action; created: isoly.DateTime; isError?: true; meta?: any; value: T; }; export declare namespace Base { type Action = (typeof Action.values)[number]; namespace Action { const values: readonly ["created", "updated", "cancelled", "removed", "inactivated"]; } type Data = { realm?: Realm; organization?: string; account?: string; isError?: true; meta?: any; }; type Create, D extends Data = Record> = (...args: [T, Action, D?]) => B; function pipeToSender, D extends Data = Record>(mapper: Base.Create): (sender: (backup: B) => any | Promise) => (...args: Parameters) => ReturnType; }