import type { Config, Node, ValidationType } from '@markdoc/markdoc'; import type { MarkdocResolveContext } from './types.js'; import type { ContentProvider, ContentRecord } from '../../content/content-provider.js'; import type { ValidateErrorWithMeta } from './errors.js'; import type { Store } from '../../store.js'; export type ResolvableType = ValidationType & { resolver?: string; }; export interface MarkdocConfigProps extends Config { partials: Record; relativePath: string; nodes: any; tags: any; } type ParsedAstChunk = { hash: string; ast: Node; rawContent: string; resolveErrors: ValidateErrorWithMeta[]; markdocErrors: ValidateErrorWithMeta[]; validatedAtRevision: number; resolvedAtRevision: number; sharedDataDeps?: Set; dynamicMarkdocComponents?: Set; relativePath: string; cacheId: string; }; export declare function resolveAndValidateMarkdoc(parsedAstChunk: ParsedAstChunk, markdocOpts: Config | undefined, context: MarkdocResolveContext): { sharedDataDeps: Set | undefined; dynamicMarkdocComponents: string[]; }; export type MarkdocRawContent = { relativePath: string; content: string; contentHash?: string; cacheId?: string; }; export declare function getAst(contentRecord: MarkdocRawContent): ParsedAstChunk; export declare function extractMdFirstHeading(contentRecord: ContentRecord): string | undefined; export declare function validateAllMarkdowns(store: Store, contentProvider: ContentProvider): Promise; export type MarkdocDeps = { routeSlugs?: string[]; sharedDataIds?: string[]; }; export declare function parseAndResolveMarkdoc(contentRecord: MarkdocRawContent, markdocOpts: Config | undefined, context: MarkdocResolveContext): { ast: Node; info: { sharedDataDeps: Set | undefined; dynamicMarkdocComponents: string[]; }; }; export declare function removeAstCacheForFile(relativePath: string): void; export {}; //# sourceMappingURL=compiler.d.ts.map