/** * Supabase client for the MCP server. * Uses the anon key (public) to read nano apps, expectations, and rules. * No auth session needed — all reads use RLS SELECT policies with USING (true). */ export declare const supabase: import("@supabase/supabase-js").SupabaseClient; export interface NanoApp { key: string; name: string; description: string | null; category: string | null; flowType: string; expectations: Expectation[]; } export interface Expectation { id: string; slug: string; name: string; description: string | null; orderIndex: number; rules: Rule[]; } export interface Rule { id: string; name: string; description: string | null; spec: string; isDefault: boolean; orderIndex: number; } /** * Fetch all nano apps with their expectations and rules. * Mirrors fetchSubapps() in src/lib/api/subapps.ts. */ export declare function fetchNanoApps(): Promise; /** * Fetch a single nano app by key (slug). * Returns null if not found. */ export declare function getNanoAppByKey(key: string): Promise; /** * Build the `rules` string for the expert agent payload. * Mirrors buildExpectationRulesText() from src/lib/expectationUtils.ts * and the SubappPage.tsx expectations assembly (lines 778-807). */ export declare function buildRulesPayload(nanoApp: NanoApp): string;