/**
 * Resource resolution helpers for workflow YAML parsing.
 *
 * Facade: delegates to the faceted-prompting package and re-exports
 * its types/functions. resolveFacetPath and resolveFacetByName build
 * TAKT-specific candidate directories then delegate to the generic
 * implementation.
 */
import type { FacetType } from '../paths.js';
import { type FacetResolutionContext } from './workflowPackageScope.js';
export interface WorkflowSections {
    personas?: Record<string, string>;
    resolvedPolicies?: Record<string, string>;
    resolvedPoliciesWithSource?: ResolvedSectionMap;
    resolvedKnowledge?: Record<string, string>;
    resolvedKnowledgeWithSource?: ResolvedSectionMap;
    resolvedInstructions?: Record<string, string>;
    resolvedInstructionsWithSource?: ResolvedSectionMap;
    resolvedReportFormats?: Record<string, string>;
    resolvedReportFormatsWithSource?: ResolvedSectionMap;
}
export { isResourcePath, resolveResourcePath, resolveSectionMap, extractPersonaDisplayName, } from 'faceted-prompting';
export type { FacetResolutionContext } from './workflowPackageScope.js';
export interface ResolvedFacetContent {
    content: string;
    sourcePath?: string;
    facetType?: FacetType;
    refName?: string;
}
export type ResolvedSectionMap = Record<string, ResolvedFacetContent>;
type ResolvedMapInput = Record<string, string> | ResolvedSectionMap;
export declare function unwrapResolvedSectionMap(map: ResolvedSectionMap | undefined): Record<string, string> | undefined;
export declare function resolveResourceContentWithSource(spec: string | undefined, workflowDir: string, facetType?: FacetType, refName?: string): ResolvedFacetContent | undefined;
export declare function resolveSectionMapWithSource(raw: Record<string, string> | undefined, workflowDir: string, facetType: FacetType): ResolvedSectionMap | undefined;
/**
 * Resolve a facet name to its file path via 4-layer lookup (package-local → project → user → builtin).
 *
 * Handles @{owner}/{repo}/{facet-name} scope references directly when repertoireDir is provided.
 *
 * @returns Absolute file path if found, undefined otherwise.
 */
export declare function resolveFacetPath(name: string, facetType: FacetType, context: FacetResolutionContext): string | undefined;
/**
 * Resolve a facet name to its file content via 4-layer lookup.
 *
 * Handles @{owner}/{repo}/{facet-name} scope references when repertoireDir is provided.
 *
 * @returns File content if found, undefined otherwise.
 */
export declare function resolveFacetByName(name: string, facetType: FacetType, context: FacetResolutionContext): string | undefined;
export declare function resolveFacetByNameWithSource(name: string, facetType: FacetType, context: FacetResolutionContext): ResolvedFacetContent | undefined;
/**
 * Resolve a section reference to content.
 * Looks up ref in resolvedMap first, then falls back to path resolution.
 * If a FacetResolutionContext is provided and ref is a name (not a path),
 * falls back to 4-layer facet resolution (including package-local and @scope).
 */
export declare function resolveRefToContent(ref: string, resolvedMap: ResolvedMapInput | undefined, workflowDir: string, facetType?: FacetType, context?: FacetResolutionContext): string | undefined;
export declare function resolveRefToContentWithSource(ref: string, resolvedMap: ResolvedMapInput | undefined, workflowDir: string, facetType?: FacetType, context?: FacetResolutionContext): ResolvedFacetContent | undefined;
/** Resolve multiple references to content strings (for fields that accept string | string[]). */
export declare function resolveRefList(refs: string | string[] | undefined, resolvedMap: ResolvedMapInput | undefined, workflowDir: string, facetType?: FacetType, context?: FacetResolutionContext): string[] | undefined;
/** Resolve persona from YAML field to spec + absolute path. */
export declare function resolvePersona(rawPersona: string | undefined, sections: WorkflowSections, workflowDir: string, context?: FacetResolutionContext): {
    personaSpec?: string;
    personaPath?: string;
};
//# sourceMappingURL=resource-resolver.d.ts.map