export declare const createSwitch: any>(fn: F, codegen: () => F) => F;