/**
 * Walk up from `cwd` looking for a `pantry/@stacksjs/<name>` directory.
 * Returns its absolute path, or null when there's no pantry (a standard install
 * or running inside the stx repo itself).
 */
export declare function findPantryPackage(cwd: string, name?: string): string | null;
/**
 * Run the resolution/staleness diagnostics. Pure-ish: only reads the filesystem
 * and (optionally) generates the runtime — never mutates anything.
 */
export declare function runDoctor(options?: DoctorOptions): Promise<DoctorReport>;
/** Render a {@link DoctorReport} as an aligned, icon-prefixed terminal block. */
export declare function formatDoctorReport(report: DoctorReport): string;
export declare interface DoctorCheck {
  name: string
  status: CheckStatus
  detail: string
  fix?: string
}
export declare interface DoctorReport {
  checks: DoctorCheck[]
  ok: boolean
}
export declare interface DoctorOptions {
  cwd?: string
  generateRuntime?: () => string
  resolve?: (specifier: string, from: string) => string | null
}
export type CheckStatus = 'ok' | 'warn' | 'error' | 'info';
