import { SyncWorkspace } from '../../agent-utils/index.js';
export interface BaseDocumentMetadata {
    index: number;
}
export interface LocalDocumentData<TMetadata extends BaseDocumentMetadata = BaseDocumentMetadata> {
    id: string;
    text: string;
    metadata: TMetadata;
}
export declare class LocalDocument<TMetadata extends BaseDocumentMetadata = BaseDocumentMetadata> {
    readonly id: string;
    private config;
    private _data;
    constructor(id: string, config: {
        uri: string;
        workspace: SyncWorkspace;
    });
    vector(): number[];
    text(): string;
    metadata(): TMetadata;
    save({ text, metadata, vector }: {
        text: string;
        metadata?: TMetadata;
        vector: number[];
    }): void;
    private loadData;
}
