import type { AbsolutePosixFilePath } from '@contentlayer/utils'; import { fs } from '@contentlayer/utils'; import type { E } from '@contentlayer/utils/effect'; import { OT, S, T } from '@contentlayer/utils/effect'; import type { GetContentlayerVersionError } from '@contentlayer/utils/node'; import type { HasCwd } from '../cwd.js'; import type { EsbuildBinNotFoundError } from '../errors.js'; import { ConfigNoDefaultExportError, ConfigReadError, NoConfigFoundError } from '../errors.js'; import type { SourcePlugin } from '../plugin.js'; import * as esbuild from './esbuild.js'; type GetConfigError = esbuild.EsbuildError | NoConfigFoundError | fs.StatError | fs.UnknownFSError | fs.MkdirError | EsbuildBinNotFoundError | ConfigReadError | ConfigNoDefaultExportError | GetContentlayerVersionError; export type Config = { source: SourcePlugin; esbuildHash: string; /** File path to the compiled Contentlayer config (usually in `.contentlayer/.cache/_some_version_/...`) */ filePath: AbsolutePosixFilePath; }; export declare const getConfig: ({ configPath, }: { /** Contentlayer config source path */ configPath?: string | undefined; }) => T.Effect; export declare const getConfigWatch: ({ configPath: configPath_, }: { configPath?: string; }) => S.Stream>; export {}; //# sourceMappingURL=index.d.ts.map