import type { BaseCommand } from '@adonisjs/core/ace'; /** * Shared state for the make:jsonapi:* stubs, derived from the entity name. */ export declare function buildStubState(command: BaseCommand, name: string): { entity: { path: string; name: string; }; modelName: string; modelFileName: string; resourceName: string; resourceFileName: string; controllerName: string; controllerFileName: string; relationshipsControllerName: string; relationshipsControllerFileName: string; type: string; }; export type StubState = ReturnType; /** * The `router.jsonApiResource(...)` registration for the generated * controllers, used both for the --routes append and the printed snippet. */ export declare function routeRegistration(state: StubState, relationships: boolean, indent?: string): string; /** * Appends a route-group registration to start/routes.ts. Skips (with a * warning) when the type is already registered, and adds the router import * if the file somehow lacks it. */ export declare function appendRoutes(command: BaseCommand, state: StubState, relationships: boolean): Promise;