import { z } from 'zod'; /** Binary assets are captured as data, never executed by resource declarations. */ export interface BinaryAsset { readonly encoding: 'base64'; readonly content: string; readonly executable?: boolean; } export interface TextAsset { readonly encoding: 'utf8'; readonly content: string; readonly executable?: boolean; } export type ResourceFile = string | BinaryAsset | TextAsset; export type ResourceKind = 'knowledge' | 'rule' | 'template' | 'skill'; export interface ResourceDefinition { readonly kind: K; readonly name: string; readonly description?: string; /** Rule/skill instructions, or a knowledge/template catalog description. */ readonly content: string; readonly entry?: string; readonly files?: Readonly>; } export type PortableResource = ResourceDeclaration<'knowledge' | 'rule' | 'template'>; export type Skill = ResourceDeclaration<'skill'>; export declare const resourceSchema: z.ZodObject<{ kind: z.ZodEnum<{ knowledge: "knowledge"; rule: "rule"; template: "template"; skill: "skill"; }>; name: z.ZodString; description: z.ZodOptional; content: z.ZodString; entry: z.ZodOptional; files: z.ZodOptional; content: z.ZodString; executable: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ executable: z.ZodOptional; encoding: z.ZodLiteral<"base64">; content: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>; export declare const resourceNameSchema: z.ZodString; export declare const resourceMapSchema: z.ZodRecord; name: z.ZodString; description: z.ZodOptional; content: z.ZodString; entry: z.ZodOptional; files: z.ZodOptional; content: z.ZodString; executable: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ executable: z.ZodOptional; encoding: z.ZodLiteral<"base64">; content: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>>; /** A directory declaration. The release compiler captures accompanying files. */ export interface DirectoryResource { readonly kind: K; readonly name: string; readonly description?: string; /** Optional template filename, relative to this resource directory. */ readonly file?: string; } export type ResourceDeclaration = DirectoryResource | ResourceDefinition; export declare const directoryResourceSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; kind: z.ZodEnum<{ knowledge: "knowledge"; rule: "rule"; template: "template"; skill: "skill"; }>; file: z.ZodOptional; }, z.core.$strict>; export declare const resourceDeclarationMapSchema: z.ZodRecord; name: z.ZodString; description: z.ZodOptional; content: z.ZodString; entry: z.ZodOptional; files: z.ZodOptional; content: z.ZodString; executable: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ executable: z.ZodOptional; encoding: z.ZodLiteral<"base64">; content: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>, z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; kind: z.ZodEnum<{ knowledge: "knowledge"; rule: "rule"; template: "template"; skill: "skill"; }>; file: z.ZodOptional; }, z.core.$strict>]>>; /** Default-export from resource.ts; captures supported documents recursively from this directory at release. */ export declare const createKnowledge: (options: { name: string; description?: string; }) => DirectoryResource<"knowledge">; /** Default-export from resource.ts beside RULE.md, which enters the agent instructions. */ export declare const createRule: (options: { name: string; description?: string; }) => DirectoryResource<"rule">; /** Default-export from resource.ts beside one template.docx, template.xlsx or template.md; file overrides that convention. */ export declare const createTemplate: (options: { name: string; description?: string; file?: string; }) => DirectoryResource<"template">; /** Default-export from resource.ts beside SKILL.md and helpers. Attach through withFilesystem({ skills }). */ export declare const createSkill: (options: { name: string; description?: string; }) => DirectoryResource<"skill">;