export interface ProjectPage { /** The page's path on the dev server, e.g. `/checkout/payment`. */ route: string; /** A short name for the thumbnail, e.g. `Payment`. */ name: string; /** What it sits with: the framework's route group, else the first path segment ("" for `/`). */ group: string; /** The file that renders it, relative to the project, with `/` separators. */ file: string; } export type MobileFramework = "Expo" | "React Native" | "Flutter" | "iOS" | "Android"; /** * How the project shows its UI, so the app can say how GG will start it: a web * dev server, plain pages GG can serve, a desktop app whose windows are web * pages (Electron, Electrobun, Tauri...), a phone app shown from its simulator * or emulator, a native desktop app with its own window, or a command-line app. */ export type PreviewStack = { kind: "web"; } | { kind: "site"; } | { kind: "desktop"; shell: string; } | { kind: "mobile"; framework: MobileFramework; /** Which simulators can show here; added by the pages route. */ tools?: { ios: boolean; android: boolean; idb: boolean; }; } | { kind: "native"; toolkit: string; } | { kind: "cli"; language: string; }; export interface ProjectPages { pages: ProjectPage[]; stack: PreviewStack; /** False when the project has no dev script and no web entry point: nothing to preview. */ hasWebApp: boolean; /** How the project's dev server is started, e.g. `pnpm dev`; null when there's no script. */ devCommand: string | null; /** Where the web app lives, relative to the project ("" for the project itself). */ appDir: string; } export declare const MAX_PAGES = 40; /** Folders tried as a plain site's served root, so a deep tree can't flood its server. */ export declare const MAX_ROOT_PROBES = 12; /** Whether the running dev server serves this path (2xx). */ export type PathAnswers = (urlPath: string) => Promise; /** The project's pages for the preview strip, its dev command, and whether it has a web app at all. */ export declare function listProjectPages(cwd: string, opts?: { answers?: PathAnswers; }): Promise;