import type { OrganizationSkillFileInventoryEntry } from "@rudderhq/shared";
import type { ImportedSkill, LocalSkillInventoryMode, ParsedSkillImportSource, ProjectSkillScanTarget } from "./organization-skills.catalog.js";
export declare function prepareYamlLines(raw: string): {
    indent: number;
    content: string;
}[];
export declare function parseYamlScalar(rawValue: string): unknown;
export declare function parseYamlBlockScalar(lines: Array<{
    indent: number;
    content: string;
}>, startIndex: number, indentLevel: number, style: "|" | ">"): {
    value: string;
    nextIndex: number;
};
export declare function parseYamlBlock(lines: Array<{
    indent: number;
    content: string;
}>, startIndex: number, indentLevel: number): {
    value: unknown;
    nextIndex: number;
};
export declare function parseYamlFrontmatter(raw: string): Record<string, unknown>;
export declare function parseFrontmatterMarkdown(raw: string): {
    frontmatter: Record<string, unknown>;
    body: string;
};
export declare function fetchText(url: string): Promise<string>;
export declare function fetchJson<T>(url: string): Promise<T>;
export declare function resolveGitHubDefaultBranch(owner: string, repo: string): Promise<string>;
export declare function resolveGitHubCommitSha(owner: string, repo: string, ref: string): Promise<string>;
export declare function parseGitHubSourceUrl(rawUrl: string): {
    owner: string;
    repo: string;
    ref: string;
    basePath: string;
    filePath: string | null;
    explicitRef: boolean;
};
export declare function resolveGitHubPinnedRef(parsed: ReturnType<typeof parseGitHubSourceUrl>): Promise<{
    pinnedRef: string;
    trackingRef: string | null;
}>;
export declare function resolveRawGitHubUrl(owner: string, repo: string, ref: string, filePath: string): string;
export declare function extractCommandTokens(raw: string): string[];
export declare function parseSkillImportSourceInput(rawInput: string): ParsedSkillImportSource;
export declare function resolveBundledSkillsRoot(): string[];
export declare function readCommunityPresetFallbackImport(orgId: string, slug: string, skillKey: string, sourceUrl: string): Promise<ImportedSkill | null>;
export declare function resolveCommunityPresetSkillsRoot(): string[];
export declare function matchesRequestedSkill(relativeSkillPath: string, requestedSkillSlug: string | null): boolean;
export declare function deriveImportedSkillSlug(frontmatter: Record<string, unknown>, fallback: string): string;
export declare function deriveImportedSkillSource(frontmatter: Record<string, unknown>, fallbackSlug: string): Pick<ImportedSkill, "sourceType" | "sourceLocator" | "sourceRef" | "metadata">;
export declare function readInlineSkillImports(orgId: string, files: Record<string, string>): ImportedSkill[];
export declare function walkLocalFiles(root: string, current: string, out: string[]): Promise<void>;
export declare function collectLocalSkillInventory(skillDir: string, mode?: LocalSkillInventoryMode): Promise<OrganizationSkillFileInventoryEntry[]>;
export declare function readLocalSkillImportFromDirectory(orgId: string, skillDir: string, options?: {
    inventoryMode?: LocalSkillInventoryMode;
    metadata?: Record<string, unknown> | null;
}): Promise<ImportedSkill>;
export declare function discoverProjectWorkspaceSkillDirectories(target: ProjectSkillScanTarget): Promise<Array<{
    skillDir: string;
    inventoryMode: LocalSkillInventoryMode;
}>>;
export declare function readLocalSkillImports(orgId: string, sourcePath: string): Promise<ImportedSkill[]>;
export declare function readUrlSkillImports(orgId: string, sourceUrl: string, requestedSkillSlug?: string | null): Promise<{
    skills: ImportedSkill[];
    warnings: string[];
}>;
//# sourceMappingURL=organization-skills.sources.d.ts.map