import { type RestResourceMethodId } from './cli-add-shared.js'; export interface RestResourcePhpFunctionNames { canWriteFunctionName: string; createHandlerName: string; deleteHandlerName: string; listHandlerName: string; readHandlerName: string; updateHandlerName: string; } /** * Build the `register_rest_route` calls for generated REST resource PHP files. */ export declare function buildRestResourceRouteRegistrations(restResourceSlug: string, methods: RestResourceMethodId[], functions: RestResourcePhpFunctionNames, options: { controllerVariableName?: string; permissionCallback?: string; routePattern: string; }): string; /** * Normalize a configured PHP class name into a global `::class` reference. */ export declare function toPhpClassConstantReference(classReference: string): string; /** * Build an optional controller shim class for generated REST resource handlers. */ export declare function buildRestResourceControllerClassSource(options: { controllerClass: string; controllerExtends?: string; functions: RestResourcePhpFunctionNames; }): string; /** * Build the controller instantiation block used inside REST route registration. */ export declare function buildRestResourceControllerBootstrapSource(controllerClass: string | undefined): string;