import { PublicApiTransports } from "../../shared/transports.js"; import { PolyesterRequestOptions } from "../../shared/request-options.js"; import { PolyesterRealtime } from "../../realtime/types.js"; import { BaseSubscribeInput } from "../../shared/types.js"; import { GetLifecycleFlowInput, GetLifecycleFlowOutput, LifecycleFlowDetail, LifecycleFlowSummary, ListLifecycleFlowsByTxInput, ListLifecycleFlowsByTxOutput, ListLifecycleFlowsInput, ListLifecycleFlowsOutput } from "./lifecycle.schemas.js"; //#region src/services/lifecycle/lifecycle.d.ts interface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput { accountId?: string; } interface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput { flowId: string; } /** * Reads and streams chain lifecycle flow state, history, progress, and transaction matches. */ declare class LifecycleService { #private; constructor(transports: PublicApiTransports, realtime: PolyesterRealtime); /** * Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token. */ listFlows(input: ListLifecycleFlowsInput, options?: PolyesterRequestOptions): Promise; /** * Fetches one lifecycle flow by its public flow id and returns summary, factual steps, timeline, and live-state detail when available. */ getFlow(input: GetLifecycleFlowInput, options?: PolyesterRequestOptions): Promise; /** * Searches lifecycle flows that reference a 0x-prefixed transaction hash, using source-only or any-reference lookup mode. A single transaction may match zero, one, or many flows. */ listFlowsByTx(input: ListLifecycleFlowsByTxInput, options?: PolyesterRequestOptions): Promise; /** * Subscribes to open lifecycle flow summary updates, using private:chain:lifecycle:flows:{accountId}:proto when an account id is provided and the public flow channel otherwise. */ subscribeOpenFlows(input: SubscribeOpenLifecycleFlowsInput): () => void; /** * Subscribes to detail updates for one lifecycle flow on public:chain:lifecycle:flow:{flowId}:proto. Invalid flow ids are rejected locally with a no-op unsubscribe function. */ subscribeFlowDetail(input: SubscribeLifecycleFlowDetailInput): () => void; } //#endregion export { LifecycleService }; //# sourceMappingURL=lifecycle.d.ts.map