export declare type Index = string | number; export declare type Branches R> = Record & { default: T; }; export declare function branch R>, flag?: F) => R>(type: F, branches: Branches): R;