import type { SessionOutboundMessage } from "@getpaseo/protocol/messages"; import type { OwnedSubscription, TimelineSubscription } from "../connection/index.js"; type TimelineUpdate = Extract; /** Local SDK lifecycle messages; these are not additional wire RPCs. */ export type TimelineMessage = TimelineUpdate | { type: "agent.timeline.subscription_restored"; payload: { agentId: string; subscriptionId: string; }; } | { type: "agent.timeline.error"; payload: { agentId: string; error: string; }; }; /** Restores live delivery; the consumer owns history reads and gap recovery. */ export declare function subscribeTimeline(agentId: string, observation: OwnedSubscription<{ agentIds: string[]; }>, handler: (message: TimelineMessage) => void, reportError: (error: unknown) => void): TimelineSubscription; export {}; //# sourceMappingURL=index.d.ts.map