import { sectionBudgetReportRows } from '../orgrt/documents/section-budget-report.js'; import type { CommandContext, CommandResult } from '../types.js'; /** The broker entry of the daemon hosting THIS project's org `name`, or null * (same rule as the dashboard's hostingDaemon): a same-named org hosted from * another project root must not receive this project's decisions. An entry * that predates the root field is taken as this project's. * * A human decision (answer, dismissal, approval, gate) goes to that daemon * when there is one. If it REFUSES — 403 without the operator credential, * unknown id, already resolved — the command must fail with nothing * recorded: writing the state file behind its back would resolve the * decision without the operator check, the audit event or delivery. Only an * unreachable daemon falls back to the offline file write. */ export declare const hostingDaemonFor: (cwd: string, name: string) => Promise<{ url: string; } | null>; /** True when this invocation asked for protocol JSON output. */ export declare const orgJson: (ctx: CommandContext) => boolean; /** Print one protocol JSON payload on stdout (compact — one line, NDJSON-safe * for line-oriented callers) and return a success result. */ export declare const printOrgJson: (payload: Record) => CommandResult; /** M5: `--by ` — who resolved a decision (default `human`). Returns * an error string for an invalid value. */ export declare const resolverFlag: (ctx: CommandContext) => Promise<{ ok: true; by: string; } | { ok: false; message: string; }>; /** M2: ids of the org's endpoint roles (automations, not agents) — excluded * from the costs/report/flow role tables. Unreadable config → none. */ export declare const endpointRoleIds: (cwd: string, name: string) => Set; /** The JSON `sections` field of a run: the rows of the `org report` section table, computed by the same function * from the run's usage events. Omitted (an empty object to spread) when the org has no section budgets, the run * has no events or the definition is unreadable, so such orgs' JSON is unchanged. */ export declare const sectionsJson: (cwd: string, name: string, run: string | undefined) => { sections?: ReturnType; }; export declare const resolveRun: (cwd: string, name: string, runFlag: unknown) => string | null; //# sourceMappingURL=org-observe-shared.d.ts.map