/// <reference types="node" />
/// <reference types="node" />
import type { string_data_url, string_filename } from '../../types/typeAliases';
/**
 * @@@
 *
 * @private thing of inline knowledge
 */
export type InlineKnowledgeSourceFile = {
    readonly filename: string_filename;
    readonly mimeType: string;
    readonly url: string_data_url;
};
/**
 * Creates a data URL that represents the inline knowledge content as a text file.
 *
 * @private thing of inline knowledge
 */
export declare function createInlineKnowledgeSourceFile(content: string): InlineKnowledgeSourceFile;
/**
 * Checks whether the provided source string is a data URL that can be decoded.
 *
 * @private thing of inline knowledge
 */
export declare function isDataUrlKnowledgeSource(source: string): source is string_data_url;
/**
 * Parses a data URL-based knowledge source into its raw buffer, filename, and MIME type.
 *
 * @private thing of inline knowledge
 */
export declare function parseDataUrlKnowledgeSource(source: string): {
    readonly buffer: Buffer;
    readonly filename: string_filename;
    readonly mimeType: string;
} | null;
/**
 * Note: [💞] Ignore a discrepancy between file name and entity name
 */
