declare module 'factory-girl' { type DefineProperty = () => T type FactoryOptions = { afterBuild?: (model: T, attrs: FactoryAttrs, buildOptions: any) => T | Promise; } type FactoryAttrs = { [P in keyof T]: (() => T[P]) | T[P] | Promise | (() => Promise) } function define( name: string, model: any, attrs: FactoryAttrs, options?: FactoryOptions ): void; function extend( parent: string, name: string, attrs: Partial>, options?: FactoryOptions ): void; function build( name: string, attrs?: Partial> ): Promise; function buildMany( name: string, count: number, attrs?: Partial ): Promise>; function sequence( name: string, generator?: (i: number) => T, ) }