/**
 * Asset document text extraction.
 *
 * A pure helper that turns a document asset's bytes into searchable text. Under
 * asset-as-embed the extracted text is seeded straight into the imported
 * entry's BODY (in-memory), so there is no on-disk sidecar to persist — the
 * import path (`asset-import-service.ts`) is the only caller. (Image captions
 * are a separate async pass — `asset-index-sweep.ts` — and land in
 * `assets.db.caption`, not here.)
 *
 * The `writeAssetSidecar` persistence helper + the `.studiograph/assets-text/`
 * tree were removed with the entity-keyed caption pipeline; the `Sidecar` in
 * the name is historical.
 */
import { type FormatExtractor } from '../core/format-registry.js';
/**
 * Extract searchable text from a document asset for its index sidecar (P3 —
 * generalized from PDF-only). Driven by the format registry's `extractor`:
 * pdf → pdf-parse (also yields page count), docx → mammoth raw text, xlsx →
 * every non-empty sheet as CSV. `image-caption` and `null` produce no sidecar
 * here — image captioning is the async P3b pass, opaque assets stay
 * filename-only. Best-effort: extraction errors return empty text (the asset
 * is still stored + indexed by frontmatter).
 */
export declare function extractSidecarText(buffer: Buffer, extractor: FormatExtractor, entityId: string): Promise<{
    text: string;
    pages?: number;
}>;
