import * as Generator from '@postxl/generator';
import { ContextResult, Page, PagePaths } from './admin.generator';
export type ModelInfo = {
    name: string;
    route: string;
    userFriendlyName: string;
};
export type ModelsBySchema = {
    schemas: string[];
    modelsBySchema: Map<string, ModelInfo[]>;
};
/**
 * Groups models by their database schema and sorts both schemas and models alphabetically.
 *
 * @param context - The context containing all models
 * @returns An object containing sorted schemas and a map of models grouped by schema
 */
export declare function groupAndSortModelsBySchema(context: ContextResult): ModelsBySchema;
export declare function generatePage({ page, paths, vfs, content, }: {
    page: Page;
    paths: PagePaths;
    vfs: Generator.VirtualFileSystem;
    content: string;
}): void;
