import type { OdooClient } from '@marcfargas/odoo-client'; import type { ReadResourceResult } from '@modelcontextprotocol/sdk/types.js'; import { McpCache } from '../cache'; import { type PolicyRule } from '../policy'; export interface McpFieldSchema { name: string; type: string; string: string; required: boolean; readonly: boolean; help: string; selection?: [string, string][]; relation?: string; } export interface RawFieldMeta { type?: string; string?: string; required?: boolean; readonly?: boolean; help?: string; selection?: [string, string][]; relation?: string; } /** Normalize a fields_get response into a sorted McpFieldSchema[]. */ export declare function buildFieldSchema(raw: Record): McpFieldSchema[]; export interface SchemaResourceContext { client: OdooClient; cache: McpCache; getPolicy: () => PolicyRule[]; } export declare const SCHEMA_RESOURCE_TEMPLATE: { name: string; uriTemplate: string; description: string; }; export declare function parseSchemaUri(uri: string): string | null; export declare function readSchemaResource(uri: string, context: SchemaResourceContext): Promise; //# sourceMappingURL=schema.d.ts.map