import type { OpenAPIDefinition, AsyncApiDefinition, ApiSpecType } from '@redocly/api-docs'; import type { Node as MarkdocNode } from '@markdoc/markdoc'; import type { ASTNode, DocumentNode } from 'graphql'; import type { LifecycleContext } from '../../types'; import type { RawApiDocsOptions } from '@redocly/api-docs'; import type { RedoclyConfig } from '@redocly/config'; export type MarkdocChunk = { node: Record & { description?: { value?: string | ASTNode[] | ASTNode | MarkdocNode | MarkdocNode[]; }; }; pointer: string; markdown: string; relativePath: string; key: string | null; }; export type BundledApiDefinition = { type: ApiSpecType; document: OpenAPIDefinition | AsyncApiDefinition | DocumentNode; config: Partial[string]>; relativePath: string; realRelativePath: string; customOutputRelativeFile?: string; markdocChunks?: MarkdocChunk[]; isVirtual?: boolean; hash: string; options: RawApiDocsOptions; }; type PartialDefinition = Omit; export declare function apiDocLoader(relativePath: string, context: LifecycleContext): Promise; export declare function apiDocsLoader(_: string, context: LifecycleContext): Promise; export declare function collectGraphqlMarkdocChunks(schemaAst: DocumentNode): MarkdocChunk[]; export {}; //# sourceMappingURL=loader.d.ts.map