@promptbook/langtail
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
31 lines (30 loc) • 1.29 kB
TypeScript
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
import type { PipelineString } from '../../pipeline/PipelineString';
import type { string_json } from '../../types/typeAliases';
/**
* Import the pipeline.book.md or pipeline.book.json file
*
* Note: Using here custom import to work in jest tests
* Note: Using sync version is 💩 in the production code, but it's ok here in tests
*
* @param path - The path to the file relative to examples/pipelines directory
* @private internal function of tests
*/
export declare function importPipelineWithoutPreparation(path: `${string}.book.md`): PipelineString;
export declare function importPipelineWithoutPreparation(path: `${string}.book.json`): PipelineJson;
/**
* Import the pipeline.book.json file as parsed JSON
*
* @private internal function of tests
*/
export declare function importPipelineJson(path: `${string}.book.json`): PipelineJson;
/**
* Import the pipeline.book.json file as string
*
* @private internal function of tests
*/
export declare function importPipelineJsonAsString(path: `${string}.book.json`): string_json<PipelineJson>;
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
* Note: [⚫] Code in this file should never be published in any package
*/