UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

24 lines (23 loc) 1.03 kB
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; import type { PipelineString } from '../../pipeline/PipelineString'; /** * Import the pipeline.book or pipeline.bookc 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`): Promise<PipelineString>; export declare function importPipelineWithoutPreparation(path: `${string}.bookc`): Promise<PipelineJson>; /** * Import the pipeline.bookc file as parsed JSON * * @private internal function of tests */ export declare function importPipelineJson(path: `${string}.bookc`): Promise<PipelineJson>; /** * Note: [💞] Ignore a discrepancy between file name and entity name * Note: [⚫] Code in this file should never be published in any package */