import { type EvoCapabilityGrant } from "../components/capabilities/broker.ts"; import { type EvoAbiRegistry } from "../components/registry.ts"; import type { EvoComponentActivationBoundary, EvoComponentManifest } from "../types.ts"; export declare const MAX_UNKNOWN_ABI_REQUESTS_PER_PACK = 4; export declare const MAX_UNKNOWN_ABI_PARTS = 8; export declare const MAX_UNKNOWN_ABI_MANIFEST_BYTES: number; export declare const MAX_UNKNOWN_ABI_ENTRYPOINT_BYTES: number; export declare const MAX_UNKNOWN_ABI_SOURCE_BYTES: number; export declare const MAX_UNKNOWN_ABI_REQUEST_BYTES: number; export declare const MAX_UNKNOWN_ABI_CODE_PATCH_BYTES: number; export declare const MAX_UNKNOWN_ABI_PATCH_FILES = 12; export interface UnknownAbiPackSource { kind: "optimization-pack"; name: string; version: string; integrity: string; } /** * The exact selection that may be proposed only after this ABI lands and the * user retries import. Keeping grants here makes the future authority * reviewable without mutating policy or broker state during ABI generation. */ export interface UnknownAbiCandidateSelection { id: string; abi: string; artifactDigest: string; grants: EvoCapabilityGrant[]; } export interface UnknownAbiBuilderPart { kind: "component" | "workflow"; surface: string; trigger?: string; selection: UnknownAbiCandidateSelection; manifest: EvoComponentManifest; entrypointContent: string; } export interface UnknownAbiBuilderRequest { schemaVersion: 1; source: UnknownAbiPackSource; targetAbi: string; surface: string; activationBoundary: EvoComponentActivationBoundary; capabilityCeiling: string[]; parts: UnknownAbiBuilderPart[]; } export declare function parseUnknownAbiBuilderRequest(value: unknown): UnknownAbiBuilderRequest; export declare function createUnknownAbiBuilderRequestsFromPack(options: { packDirectory: string; grantsByComponent?: Readonly>; registry?: EvoAbiRegistry; }): Promise; /** * Enforce the narrow infrastructure-patch envelope before a worktree exists. * Git staging still performs the authoritative path, mode, binary, whitespace, * and L1 checks. */ export declare function assertUnknownAbiCodePatch(request: UnknownAbiBuilderRequest, patch: string): string[]; //# sourceMappingURL=unknown-abi.d.ts.map