import { z } from "zod"; import { RulesFileInstallStrategy } from "./types.js"; declare const RulesManifestDataSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; currentVersion: z.ZodString; versions: z.ZodRecord; installStrategy: z.ZodOptional; applyTo: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; name: string; title: string; label: string; tokens: number; client?: string | undefined; installStrategy?: string | undefined; applyTo?: string | undefined; }, { path: string; name: string; title: string; label: string; tokens: number; client?: string | undefined; installStrategy?: string | undefined; applyTo?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { options: { path: string; name: string; title: string; label: string; tokens: number; client?: string | undefined; installStrategy?: string | undefined; applyTo?: string | undefined; }[]; }, { options: { path: string; name: string; title: string; label: string; tokens: number; client?: string | undefined; installStrategy?: string | undefined; applyTo?: string | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { name: string; description: string; currentVersion: string; versions: Record; }, { name: string; description: string; currentVersion: string; versions: Record; }>; type RulesManifestData = z.infer; export type RulesManifestVersionOption = { name: string; title: string; label: string; contents: string; tokens: number; client: string | undefined; installStrategy: RulesFileInstallStrategy; applyTo: string | undefined; }; export type ManifestVersion = { version: string; options: Array; }; export declare class RulesManifest { private readonly manifest; private readonly loader; constructor(manifest: RulesManifestData, loader: RulesManifestLoader); get name(): string; get description(): string; get currentVersion(): string; getCurrentVersion(): Promise; get versions(): Record; } export declare function loadRulesManifest(loader: RulesManifestLoader): Promise; export interface RulesManifestLoader { loadManifestContent(): Promise; loadRulesFile(relativePath: string): Promise; } /** * Loads agent skills bundled inside the `trigger.dev` CLI (the `skills/` folder shipped * via the package's `files[]`). The CLI is the only source of skills; `skillsDir` and * `version` are resolved from the CLI's own package by the caller and injected here, so * this stays a pure reader. Synthesizes the manifest shape the install pipeline consumes * so skills flow through `loadRulesManifest` -> `getCurrentVersion` -> install, with * `installStrategy: "skills"`. `version` (== the CLI/SDK version) is stamped into each * skill on read in place of the `{{TRIGGER_SDK_VERSION}}` placeholder. */ export declare class BundledSkillsLoader implements RulesManifestLoader { private readonly skillsDir; private readonly version; constructor(skillsDir: string, version: string); loadManifestContent(): Promise; loadRulesFile(relativePath: string): Promise; } export {};