import { type SQL } from "drizzle-orm"; /** * Whether the automation `task` may hear the event source `source`: a * workspace source, or a private one of the automation's owner. An App data * sync keeps its owner (the person whose connection a shared sync runs on) * in its action, so its owner's private sources reach it too. */ export declare const AUTOMATION_HEARS_SOURCE: SQL; /** * Private source kinds that are each person's own copy of the same thing * (their Gmail, their GitHub connection), so a personal sync's trigger on its * owner's one stands for every subscriber's. */ export declare const PERSONAL_SYNC_SUBSCRIBER_SOURCE_KINDS: readonly ["gmail", "github_personal"]; /** * Whether the trigger (aliases `trigger`, `task`, `source` = the trigger's * source) hears events of the source `firedSourceId`: its own source, when * its automation may hear it, or, for a personal app sync whose trigger names * its owner's private Gmail or GitHub (your connection) source, the same * kind of private source of a person opted in to that sync. Such a run is * only for the person whose source fired (appSyncRunEventSources). */ export declare function triggerHearsSource(firedSourceId: SQL, options?: { activeOnly?: boolean; }): SQL; /** * Whether a runnable automation listens to a source (or, given a stream key, * to one stream of it): an active or blocked trigger (a blocked one waits for * the source to recover) on an active, undeleted, unfinished automation whose * owner may use the active source (or a personal sync's subscriber's own * source, see triggerHearsSource). Subscriptions and feeds exist only while * this holds. */ export declare function automationsListenTo(workspaceId: string, sourceId: SQL, streamKey?: SQL | null): SQL;