import type { AssetKind, AssetPrerequisiteKind, AuthorityTier, BuiltInHostTarget, CompatibilityMode, HostTarget, SourceKind } from "../types.js"; /** * Defines the supported json record values. */ export type JsonRecord = Record; /** * Defines authority tiers shared by the lifecycle pipeline. */ export declare const AUTHORITY_TIERS: AuthorityTier[]; /** * Defines source kinds shared by the lifecycle pipeline. */ export declare const SOURCE_KINDS: SourceKind[]; /** * Defines asset kinds shared by the lifecycle pipeline. */ export declare const ASSET_KINDS: AssetKind[]; /** * Defines asset prerequisite kinds shared by the lifecycle pipeline. */ export declare const ASSET_PREREQUISITE_KINDS: AssetPrerequisiteKind[]; /** * Defines host targets shared by the lifecycle pipeline. */ export declare const HOST_TARGETS: BuiltInHostTarget[]; /** * Defines compatibility modes shared by the lifecycle pipeline. */ export declare const COMPATIBILITY_MODES: CompatibilityMode[]; /** * Defines risk levels shared by the lifecycle pipeline. */ export declare const RISK_LEVELS: readonly ["low", "medium", "high"]; /** * Defines context cost classes shared by the lifecycle pipeline. */ export declare const CONTEXT_COST_CLASSES: readonly ["tiny", "small", "medium", "large"]; /** * Defines mirror statuses shared by the lifecycle pipeline. */ export declare const MIRROR_STATUSES: readonly ["approved", "approved-with-warning", "quarantined", "metadata-only", "reference-only"]; /** * Defines upstream types shared by the lifecycle pipeline. */ export declare const UPSTREAM_TYPES: readonly ["repo", "package", "marketplace", "docs", "local"]; /** * Defines wire plan hosts shared by the lifecycle pipeline. */ export declare const WIRE_PLAN_HOSTS: readonly [...BuiltInHostTarget[], "vscode-user", "opencode-project"]; /** * Validates unknown data as host target. */ export declare function assertHostTarget(value: unknown, context: string): HostTarget; /** * Validates unknown data as host target array. */ export declare function assertHostTargetArray(value: unknown, context: string): void; /** * Validates unknown data as asset kind array. */ export declare function assertAssetKindArray(value: unknown, context: string): void; /** * Validates unknown data as string array. */ export declare function assertStringArray(value: unknown, context: string): string[]; /** * Validates unknown data as string array record. */ export declare function assertStringArrayRecord(value: unknown, context: string): void; /** * Validates unknown data as array. */ export declare function assertArray(value: unknown, context: string): unknown[]; /** * Validates unknown data as record. */ export declare function assertRecord(value: unknown, context: string): JsonRecord; /** * Validates unknown data as string. */ export declare function assertString(value: unknown, context: string): string; /** * Validates unknown data as number. */ export declare function assertNumber(value: unknown, context: string): number; /** * Validates unknown data as maybe string. */ export declare function assertMaybeString(value: unknown, context: string, required: boolean): void; /** * Validates unknown data as maybe number. */ export declare function assertMaybeNumber(value: unknown, context: string, required: boolean): void; /** * Validates unknown data as maybe array. */ export declare function assertMaybeArray(value: unknown, context: string, required: boolean): unknown[] | undefined; /** * Validates unknown data as maybe record. */ export declare function assertMaybeRecord(value: unknown, context: string, required: boolean): JsonRecord | undefined; /** * Validates unknown data as maybe string array. */ export declare function assertMaybeStringArray(value: unknown, context: string, required: boolean): string[] | undefined; /** * Validates unknown data as boolean. */ export declare function assertBoolean(value: unknown, context: string): boolean; /** * Validates unknown data as literal. */ export declare function assertLiteral(value: unknown, allowed: readonly T[], context: string): T; /** * Provides fail for the lifecycle pipeline. */ export declare function fail(context: string, message: string): never;