/** * Nano app types and pure utility functions. * No external dependencies — extracted from supabase.ts to avoid * shipping @supabase/supabase-js to npm users who never use it. */ 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; } /** * 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;