import { type ExtractResult } from "./memory-ingest-extract.js";
export interface IngestWebParams {
accountId: string;
url: string;
content: string;
scope?: string;
/**
* Caller-supplied editorial title (parsed from HTML `
` / `og:title`
* by the dispatching librarian). When present, used verbatim (length-capped
* to 200 chars). Falls through to H1 → URL-slug → URL when absent or empty.
*/
title?: string;
}
export type TitleSource = "caller" | "h1" | "url-slug" | "url";
export interface IngestWebResult {
attachmentId: string;
title: string;
titleSource: TitleSource;
extract: ExtractResult;
existingDocument?: {
nodeId: string;
name: string;
summary: string;
ingestedAt: string;
};
}
export declare function extractTitle(content: string, url: string, callerTitle?: string): {
title: string;
source: TitleSource;
};
export declare function memoryIngestWeb(params: IngestWebParams): Promise;
//# sourceMappingURL=memory-ingest-web.d.ts.map