import { BaseDocumentMetadata, LocalDocument } from '../embeddings/index.js';
export declare const getTextFromPriorChunks: (args: {
    sortedElements: {
        text: () => string;
    }[];
    currentIndex: number;
    overlap: number;
    characterLimit: number;
}) => string;
export declare const getTextFromNextChunks: (args: {
    sortedElements: {
        text: () => string;
    }[];
    currentIndex: number;
    overlap: number;
    characterLimit: number;
}) => string;
export declare const sortDocumentsByIndex: <TMetadata extends BaseDocumentMetadata>(documents: LocalDocument<TMetadata>[]) => LocalDocument<TMetadata>[];
