export interface Options { relativeLocalPaths?: boolean; extensions?: string[]; nativeRouteTemplates?: boolean; nativeLexicalThis?: boolean; routeTemplates?: string[]; components?: string[]; renderTests?: string[]; defaultFormat?: 'gjs' | 'gts'; routeTemplateSignature?: string; templateOnlyComponentSignature?: string; templateInsertion?: 'beginning' | 'end'; renamingRules?: string; /** * Path to an ES module whose default export implements a function like * * (path: string, filename: string, resolve: (path: string, filename: string) => string) => string; * * Return a string to provide a resolvable import path, based on the original import `path` and optionally * the `filename` where the import appears. Return `undefined` to fall back to the default behavior or call * `resolve` to use that default implementation. */ customResolver?: string; /** * This allows you to reuse the ember-prebuild if you are running the codemod multiple times. * * You should only set this setting if you know that any changes you're making will not influence * the prebuild in any way. Most people should leave this set to its default `false` value */ reusePrebuild?: boolean; /** * Exports template-only components via a named const definition. * * This can improve import autocompletion in IDEs like VSCode. */ addNameToTemplateOnly?: boolean; } export declare function optionsWithDefaults(options?: Options): OptionsWithDefaults; type OptionsWithDefaults = Omit, 'customResolver'> & Pick; type Result = { context: string; status: 'success'; } | { context: string; status: 'failure'; messages: string[]; } | { context: string; status: 'noop'; }; export declare function ensurePrebuild(opts: OptionsWithDefaults): Promise; export declare function ensureAppSetup(): Promise; export declare function processRouteTemplates(opts: OptionsWithDefaults): Promise; export declare function processRouteTemplate(filename: string, opts: OptionsWithDefaults): Promise; export declare function processComponents(opts: OptionsWithDefaults): Promise; export declare function processComponent(hbsPath: string, jsPath: string | undefined, opts: OptionsWithDefaults): Promise; export declare function processRenderTests(opts: OptionsWithDefaults): Promise; export declare function processRenderTest(filename: string, opts: OptionsWithDefaults): Promise; export declare function run(partialOpts: Options): Promise; export {};