export type Action = { $set?: T; $unset?: true; $push?: T; $addToSet?: T; }; export declare namespace Action { function is(value: any | Action): value is Action; type Operator = "$set" | "$unset" | "$push" | "$addToSet"; namespace Operator { function is(value: any | Operator): value is Operator; } function extract(action: Action | any): Action | undefined; }