import { OpenAPIParser } from '@redocly/openapi-docs';
import type { RbacScopeItems, RedocConfig, REDOCLY_TEAMS_RBAC, RedoclyConfig } from '@redocly/config';
import type { ContentItemModel, IMenuItem, OpenAPIDefinition, Options } from '@redocly/openapi-docs';
import type { LifecycleContext } from '../../types';
export type BundledDefinition = {
    definition: OpenAPIDefinition;
    config: Partial<RedoclyConfig & NonNullable<RedoclyConfig['apis']>[string]>;
    relativePath: string;
    realRelativePath: string;
    customOutputRelativeFile?: string;
    markdocChunks: MarkdocChunk[];
    hash: string;
    isVirtual: boolean;
    contentItems: ContentItemModel[];
    flatItems: (IMenuItem & {
        [REDOCLY_TEAMS_RBAC]?: RbacScopeItems;
    })[];
    options: Options;
    rawOptions: RedocConfig;
    parser: OpenAPIParser;
};
export type MarkdocChunk = {
    node: Record<string, unknown>;
    pointer: string;
    markdown: string;
    relativePath: string;
    key: string;
};
export declare function definitionLoader(relativePath: string, context: LifecycleContext): Promise<Omit<BundledDefinition, 'hash'>[]>;
export declare function definitionsLoader(_: string, context: LifecycleContext): Promise<BundledDefinition[]>;
//# sourceMappingURL=load-definition.d.ts.map