export declare function flags(flags: { [key in T]: boolean | void; }, def: T): T;