import type { RpcRecord } from "./rpc-monitor-observer.ts";
export type RpcTarget = {
    readonly kind: "children";
    readonly parent: string;
} | {
    readonly kind: "all";
} | {
    readonly kind: "id";
    readonly id: string;
} | {
    readonly kind: "task";
    readonly taskId: string;
} | {
    readonly kind: "remote";
    readonly device: string;
    readonly session: string;
};
export type RpcEvents = "all" | readonly string[];
export declare function parseRpcTarget(target: string, selfDurableId: string | undefined): RpcTarget | {
    readonly error: string;
};
/** `["session_status", "effect_status"]` for children, `["session_status"]` otherwise. */
export declare function defaultEvents(target: RpcTarget): readonly string[];
/** The `subscribe_sessions` frame (without id/type) for one endpoint. */
export declare function subscriptionFor(target: RpcTarget, events: RpcEvents): RpcRecord;
/** Whether a delivered record is one the monitor reports. */
export declare function wantsRecord(events: RpcEvents, exclude: readonly string[], type: string): boolean;
/** For a `st_` target: whether a record or snapshot row belongs to that task. */
export declare function matchesTask(target: RpcTarget, row: RpcRecord): boolean;
/** Every endpoint socket the user runs under this agent dir (hosts and terminal endpoints). */
export declare function endpointSockets(agentDir: string): Promise<readonly string[]>;
//# sourceMappingURL=rpc-monitor-targets.d.ts.map