import { PodTable } from '../schema'; import { Shape, ShapeManager, ValidationResult } from './types'; /** * 从 Shape 生成的表定义 */ export interface GeneratedTable { /** 表名 */ name: string; /** 表定义 */ table: PodTable; /** 来源 Shape */ shape: Shape; } export declare class DrizzleShapeManager implements ShapeManager { private podUrl; private authenticatedFetch; constructor(podUrl: string, authenticatedFetch?: typeof fetch); generateShape(table: PodTable): Shape; toSHACL(shape: Shape): string; saveShape(shape: Shape, location: string, fetchFn?: typeof fetch): Promise; loadShape(uri: string, fetchFn?: typeof fetch): Promise; /** * 从 Shape 生成 PodTable 定义 * * @param shape Shape 定义 * @param containerPath 容器路径(可选) * @returns 生成的表定义 */ shapeToTable(shape: Shape, containerPath?: string): GeneratedTable; /** * 从 Shape URI 或 targetClass 提取表名 */ private extractTableName; /** * 从 URI 路径提取名称 */ private extractNameFromPath; /** * 将 ShapeProperty 转换为 PodTable 列定义 */ private propertyToColumn; validate(data: Record, shape: Shape): ValidationResult; private shapeToZod; } //# sourceMappingURL=manager.d.ts.map