import type { NativeRule, QualifierField } from "./types.js"; import type { z } from "zod"; export declare function validateFileContentExtractionMode(query: unknown, context: z.RefinementCtx): void; export declare function validateFetchContent(query: unknown, context: z.RefinementCtx): void; export declare function refineNativeContentQuery(query: unknown, context: z.RefinementCtx): void; export declare const TOPOLOGY_ROOT_REQUIRED_MESSAGE = "path is required unless source, target, or an entrypoint is an absolute path from which the repository root can be inferred."; export declare function hasResolvableTopologyRoot(query: Record): boolean; export declare function refineNativeTopologyRoot(query: Record, context: z.RefinementCtx): void; export declare function refineNativeCommitScope(query: { keywords?: string[] | undefined; path?: string | undefined; ref?: string | undefined; base?: string | undefined; head?: string | undefined; }, context: z.RefinementCtx): void; export declare function refineNativeCommitKeywordScope(query: Parameters[0], context: z.RefinementCtx): void; export declare function refineNativeHistoryRepositoryScope(query: Record, context: z.RefinementCtx): void; export declare function refineNativeCommitComparePair(query: { base?: string | undefined; head?: string | undefined; }, ctx: z.RefinementCtx): void; export declare function refineNativeRustContext(context: { procMacros?: boolean; buildScripts?: boolean; }, ctx: z.RefinementCtx): void; /** Zod mirror of native `operation_controls`: a field set outside its operations is rejected. */ export declare function refineNativeOperationControls(fields: Readonly>, defaultOperation: string): (query: Record, ctx: z.RefinementCtx) => void; export declare function refineNativeLspQuery(query: Record, ctx: z.RefinementCtx): void; export declare function isNativeRegistryUrl(value: string): boolean; export declare function refineNativeArtifactQuery(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativeDepthRange(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativeGithubSearchCode(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativeGithubSearchRepo(query: Record, ctx: z.RefinementCtx): void; /** Reject a `qualifiers` key that repeats a typed field the row also sets. */ export declare function refineNativeQualifierFields(fields: readonly QualifierField[]): (query: Record, ctx: z.RefinementCtx) => void; export declare function nativeCanonicalIssueRefiner(schema: z.ZodTypeAny): (query: unknown, ctx: z.RefinementCtx) => void; export declare function refineNativeIssueHistory(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativePullRequestHistory(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativeAstRewriteBulk(input: { queries: unknown[]; }, context: z.RefinementCtx): void; export declare function refineNativeAstGrepRule(rule: Record, context: z.RefinementCtx): void; export declare function refineNativeAstRewriteQuery(query: Record, context: z.RefinementCtx): void; type NativeRuleContext = Readonly<{ toolName: string; sourceLabel: string; }>; /** Implements only preparation opcodes in milestone one; all others fail closed. */ export declare function applyNativePreparationRules(input: Record, rules: readonly NativeRule[], context: NativeRuleContext): Record; export {};