import type { OrganizationPortabilityEnvInput, OrganizationPortabilityFileEntry, OrganizationPortabilityManifest, OrganizationSkill } from "@rudderhq/shared";
import { type CompanyPackageIncludeEntry, type MarkdownDoc, type ResolvedSource } from "./organization-portability.core.js";
export declare function resolveBundledSkillsCommit(): Promise<string | null>;
export declare function buildSkillSourceEntry(skill: OrganizationSkill): Promise<{
    kind: string;
    repo: string;
    path: string;
    commit: string | null;
    trackingRef: string | null;
    url: string | null;
} | {
    kind: string;
    url: string;
    repo?: undefined;
    path?: undefined;
    commit?: undefined;
    trackingRef?: undefined;
} | null>;
export declare function shouldReferenceSkillOnExport(skill: OrganizationSkill, expandReferencedSkills: boolean): boolean;
export declare function buildReferencedSkillMarkdown(skill: OrganizationSkill): Promise<string>;
export declare function withSkillSourceMetadata(skill: OrganizationSkill, markdown: string): Promise<string>;
export declare function parseYamlScalar(rawValue: string): unknown;
export declare function prepareYamlLines(raw: string): {
    indent: number;
    content: string;
}[];
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 parseYamlFile(raw: string): Record<string, unknown>;
export declare function buildYamlFile(value: Record<string, unknown>, opts?: {
    preserveEmptyStrings?: boolean;
}): string;
export declare function parseFrontmatterMarkdown(raw: string): MarkdownDoc;
export declare function fetchText(url: string): Promise<string>;
export declare function fetchOptionalText(url: string): Promise<string | null>;
export declare function fetchBinary(url: string): Promise<Buffer<ArrayBuffer>>;
export declare function fetchJson<T>(url: string): Promise<T>;
export declare function dedupeEnvInputs(values: OrganizationPortabilityManifest["envInputs"]): OrganizationPortabilityEnvInput[];
export declare function buildEnvInputMap(inputs: OrganizationPortabilityEnvInput[]): Record<string, Record<string, unknown>>;
export declare function readCompanyApprovalDefault(_frontmatter: Record<string, unknown>): boolean;
export declare function readIncludeEntries(frontmatter: Record<string, unknown>): CompanyPackageIncludeEntry[];
export declare function readAgentEnvInputs(extension: Record<string, unknown>, agentSlug: string): OrganizationPortabilityManifest["envInputs"];
export declare function readAgentSkillRefs(frontmatter: Record<string, unknown>): string[];
export declare function isPortableAgentEntryPath(relativePath: string): boolean;
export declare function ensurePortableAgentEntryFile(exportedFiles: Record<string, string>, exportedEntryFile: string, fallbackBody: string): {
    files: {
        [x: string]: string;
    };
    entryFile: string;
};
export declare function buildManifestFromPackageFiles(files: Record<string, OrganizationPortabilityFileEntry>, opts?: {
    sourceLabel?: {
        orgId: string;
        organizationName: string;
    } | null;
}): ResolvedSource;
export declare function normalizeGitHubSourcePath(value: string | null | undefined): string;
export declare function parseGitHubSourceUrl(rawUrl: string): {
    owner: string;
    repo: string;
    ref: string;
    basePath: string;
    companyPath: string;
};
export declare function resolveRawGitHubUrl(owner: string, repo: string, ref: string, filePath: string): string;
//# sourceMappingURL=organization-portability.package.d.ts.map