Public declaration syntax from forge-ts/packages/forge-embed/src/document.ts Original source SHA-256: 3d878445022e2b7a05ab30c9e2a5c85910adb9fae3cc3d5b58ec366a8bf474cb Function bodies and constant values are omitted. This is not the complete implementation. Source line 27 export interface Document { /** The text content of the document. */ readonly content: string; /** Optional key-value metadata for filtering and context. */ readonly metadata: Record; } Source line 45 export interface DocumentLoader { /** * Loads documents from the given source. * * @param source - The source content (text, JSON string, URL, etc.). * @returns An array of loaded documents. * @throws {ForgeEmbedError} If loading fails. */ load(source: string): Promise; } Source line 69 export class TextLoader implements DocumentLoader { async load(source: string): Promise; } Source line 101 export class JsonLoader implements DocumentLoader { constructor(contentField?: string); async load(source: string): Promise; }