import { type InspectResult } from "../../inspect/run.ts"; import type { InspectObjectArgsT } from "../schemas.ts"; import type { ToolOverrides } from "./describe-global.ts"; /** * The headline tool. Single root → walk parents transitively → walk children * one level → classify required/sensitive → compute load plan. * * Returns the same shape `runInspect()` produces, serialized to plain JSON * (Map → array, Set → array) so MCP clients can consume it without adapters. * * AI-boundary note: the only network call that touches record data is the * opt-in `SELECT COUNT()` — which returns a single integer per object, not * rows. Everything else is describe metadata. */ export declare function inspectObject(args: InspectObjectArgsT, overrides?: ToolOverrides & { skipGlobalValidate?: boolean; }): Promise; export type SerializedInspectResult = { orgId: string; alias: string | null; rootObject: string; parentObjects: string[]; childObjects: string[]; graph: { nodes: Array>; edges: Array>; }; cycles: Array<{ nodes: string[]; internalEdges: unknown[]; breakEdge: unknown | null; }>; loadPlan: { steps: unknown[]; excluded: string[]; }; }; export declare function serialize(result: InspectResult, meta: { orgId: string; alias: string | null; }): SerializedInspectResult;