import type { TestStatus } from "@allurereport/core-api"; import type { AgentFindingCategory, AgentFindingSeverity, AgentOutputBundle, AgentTestManifestLine } from "./harness.js"; import type { AgentLabelFilter } from "./selection.js"; export declare const AGENT_QUERY_SCHEMA = "allure-agent-query/v1"; export declare const AGENT_QUERY_VIEWS: readonly ["summary", "tests", "findings", "test"]; export declare const AGENT_TEST_STATUSES: TestStatus[]; export declare const AGENT_FINDING_SEVERITIES: AgentFindingSeverity[]; export declare const AGENT_FINDING_CATEGORIES: AgentFindingCategory[]; export type AgentQueryView = (typeof AGENT_QUERY_VIEWS)[number]; export type AgentQueryFilters = { environments?: string[]; labelFilters: AgentLabelFilter[]; statuses?: TestStatus[]; severities?: AgentFindingSeverity[]; categories?: AgentFindingCategory[]; checks?: string[]; test?: string; limit?: number; includeMarkdown?: boolean; }; export declare const normalizeAgentQueryView: (value?: string) => AgentQueryView; export declare const normalizeRepeatedEnumValues: (values: string[] | undefined, allowed: readonly T[], optionName: string) => T[] | undefined; export declare const normalizeRepeatedStringValues: (values: string[] | undefined) => string[] | undefined; export declare const normalizeAgentQueryLimit: (value?: string) => number | undefined; export declare const buildAgentQueryPayload: (output: AgentOutputBundle, view: AgentQueryView, filters: AgentQueryFilters) => Promise<{ expected?: import("./harness.js").AgentExpectations | undefined; schema: string; view: string; output_dir: string; index_md: string | null; run: { schema_version: string; generated_at: string; phase: "running" | "done" | null; command: string | null; exit_code: { original: number; actual: number | null; } | null; expectations_present: boolean; expectation_result: { schema_version: "allure-agent-expectation-result/v1"; status: import("./harness.js").AgentExpectationResultStatus; impact: import("./harness.js").AgentExpectationResultImpact; source: { kind: "inline" | "file" | "none"; path: string | null; }; recognized_control_count: number; unsupported_controls: string[]; degraded_controls: string[]; summary: { expected_tests: number; observed_tests: number; missing_expected: number; forbidden_observed: number; unexpected_observed: number; evidence_mismatches: number; }; finding_ids: string[]; }; agent_context: { agent_name: string | null; loop_id: string | null; task_id: string | null; conversation_id: string | null; }; }; summary: { stats: import("@allurereport/core-api").Statistic; modeled_stats?: { total: number; failed: number; broken: number; skipped: number; unknown: number; passed: number; }; unmodeled_from_stats?: { total: number; failed: number; broken: number; skipped: number; unknown: number; passed: number; }; compact?: { visible_results: number; logical_tests: number; unmodeled_visible_results: number; runner_failures_outside_logical_tests: number; completeness: "complete" | "partial"; findings?: number; }; duration_ms: { total: number; average: number; max: number; }; environments: Array<{ environmentId: string; total: number; failed: number; broken: number; skipped: number; unknown: number; passed: number; }>; }; modeling: { completeness: "complete" | "partial"; reasons: string[]; modeledStats: { total: number; failed: number; broken: number; skipped: number; unknown: number; passed: number; }; unmodeledFromStats: { total: number; failed: number; broken: number; skipped: number; unknown: number; passed: number; }; runnerFailures: { total: number; globalErrors: number; stderrActionable: number; samples: Array<{ source: "stderr" | "global_error"; kind: "import" | "suite-load" | "setup" | "global-error"; message: string; count: number; }>; }; stderr: { actionableCount: number; actionableSamples: string[]; noisyWarningCount: number; noisyWarningSamples: string[]; }; compact: { visible_results: number; logical_tests: number; unmodeled_visible_results: number; runner_failures_outside_logical_tests: number; completeness: "complete" | "partial"; }; } | null; human_report: import("./model.js").AgentHumanReportStatus | null; check_summary: { total: number; countsBySeverity: Record; countsByCategory: Record; }; paths: { index_md: string | null; agents_md: string | null; tests_manifest: string | null; findings_manifest: string | null; test_events_manifest: string | null; expected_manifest: string | null; human_report_manifest: string | null; process_logs: { stdout: string | null; stderr: string | null; }; }; } | { schema: string; view: string; output_dir: string; total_matches: number; returned: number; tests: AgentTestManifestLine[]; } | { schema: string; view: string; output_dir: string; total_matches: number; returned: number; findings: import("./harness.js").AgentFindingManifestLine[]; } | { markdown?: string | undefined; schema: string; view: string; output_dir: string; markdown_path: string | null; test: AgentTestManifestLine; findings: import("./harness.js").AgentFindingManifestLine[]; }>;