import { BaseCommand } from '../../modules/ace/main.ts'; declare const ALLOWED_ENVIRONMENTS: ("web" | "console" | "test" | "repl")[]; type AllowedAppEnvironments = typeof ALLOWED_ENVIRONMENTS; /** * Command to create a new service provider class. * Service providers are used to register bindings, configure services, * and bootstrap application components during startup. * * @example * ``` * ace make:provider AuthProvider * ace make:provider DatabaseProvider --register * ace make:provider AppProvider --no-register * ace make:provider CacheProvider --environments=web,console * ``` */ export default class MakeProvider extends BaseCommand { #private; /** * The command name */ static commandName: string; /** * The command description */ static description: string; /** * Name of the service provider to create */ name: string; /** * Automatically register the provider in the .adonisrc.ts file */ register?: boolean; /** * Application environments where the provider should be loaded */ environments?: AllowedAppEnvironments; /** * Read the contents from this file (if the flag exists) and use * it as the raw contents */ contentsFrom: string; /** * Forcefully overwrite existing files */ force: boolean; /** * The stub template file to use for generating the provider class */ protected stubPath: string; /** * Execute the command to create a new service provider. * Validates inputs, generates the provider file, and optionally registers it in .adonisrc.ts. */ run(): Promise; } export {};