import type { Collection, Transform, JSCodeshift, Node, Options, API, FileInfo } from 'jscodeshift'; export declare type CodeshiftFunction = (source: Collection, j: JSCodeshift, context: { file: FileInfo; api: API; options: Options; }) => Collection | string | void; export declare function createCodeshift(codemod: CodeshiftFunction): Transform; export declare function appendImports(j: JSCodeshift, source: Collection, placement: `${'BEFORE' | 'AFTER'}_${'FIRST' | 'LAST'}`, importSourceRegExp: RegExp, nodeOrSourceCode: Node | string): Collection; export declare function wrapDefaultExport(j: JSCodeshift, source: Collection, calleeIdentifier: string): Collection;