UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

74 lines (73 loc) 2.69 kB
/** @deprecated */ export declare function useFlows(): { flows: import("../../flows").Flow[]; config: { basepath: string; flows: { [x: string]: { tasks?: { [x: string]: { params: { delay: number; } | { body?: string | undefined; method?: string | undefined; headers?: string | { key: string; value: string; }[] | undefined; normal?: string | number | undefined; url: string; } | { render: string; } | { input?: any; loop?: boolean | undefined; flow: any; }; type: "log" | "fetch" | "render" | "subflow"; }; } | undefined; connections?: { [x: string]: { config: { condition?: { type: "success"; } | { type: "error"; } | { type: "matches"; path: string; value: string; } | undefined; max_retries?: number | undefined; }; source: string; target: string; }; } | undefined; start_task?: string | undefined; responding_task?: string | undefined; trigger: { type: "manual" | "event" | "http"; config: { event: string; mode: "sync" | "async"; } | { path: string; mode: "sync" | "async"; method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE"; response_type: "json" | "text" | "html"; } | { mode: "sync" | "async"; }; }; }; }; }; }; /** @deprecated */ export declare function useFlow(name: string): { flow: import("../../flows").Flow; config: any; };