import type { NativeRule, NativeValidationIssue } 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 file, 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; branch?: string | undefined; base?: string | undefined; head?: string | undefined; includeDiff?: boolean | undefined; }, context: z.RefinementCtx): void; export declare function refineNativeCommitKeywordScope(query: Parameters[0], 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; export declare function refineNativeLspQuery(query: Record, ctx: z.RefinementCtx): void; export declare const isNativeNonBlank: (value: string) => boolean; 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 refineNativeLineRange(query: Record, ctx: z.RefinementCtx): void; export declare function hasNativeRunnableSearchConstraint(query: Record): boolean; export declare function refineNativeGithubSearch(query: Record, ctx: z.RefinementCtx): void; export declare function refineNativeDisabledSemanticRanking(value: unknown, 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 refineNativePatchSelection(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 refineNativeExperimentalRewrite(query: { transform: Record; }, context: z.RefinementCtx): void; export declare function refineNativeAstRewriteQuery(query: Record, context: z.RefinementCtx): void; export declare function hasNativePullRequestCommentSelector(comments: Record): boolean; export declare function refineNativeLocalSearchQuery(value: unknown, ctx: z.RefinementCtx): void; export 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 declare function unsupportedNativeRuleIssue(entry: NativeRule): NativeValidationIssue;