import { z } from 'zod'; import type { Resource } from '../schema'; /** * A known resource that the server is capable of reading. */ export declare const resourceSchema: z.ZodObject<{ /** * The URI of this resource. */ uri: z.ZodString; /** * A human-readable name for this resource. * * This can be used by clients to populate UI elements. */ name: z.ZodString; /** * A description of what this resource represents. * * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * Optional annotations for the client. */ annotations: z.ZodOptional, "many">>; priority: z.ZodOptional; }, "strip", z.ZodTypeAny, { audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; }, { audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; }>>; /** * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. * * This can be used by Hosts to display file sizes and estimate context window usage. */ size: z.ZodOptional; }, "strip", z.ZodTypeAny, { uri: string; name: string; description?: string | undefined; mimeType?: string | undefined; annotations?: { audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; } | undefined; size?: number | undefined; }, { uri: string; name: string; description?: string | undefined; mimeType?: string | undefined; annotations?: { audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; } | undefined; size?: number | undefined; }>; /** * Type guard function for validating if a value is a Resource * @param value - The value to check * @returns True if the value matches the Resource schema */ export declare function isResource(value: unknown): value is Resource; //# sourceMappingURL=resource.d.ts.map