/**
 * Supported file formats.
 */
export type FileFormat = 'json' | 'yaml';
/**
 * Detect file format from extension.
 */
export declare function detectFormat(filePath: string): FileFormat;
/**
 * Read raw file content as string. Throws CliError on failure.
 */
export declare function readRawFile(filePath: string): string;
/**
 * Read and parse a file as a plain JS object (JSON or YAML).
 */
export declare function readFileAsObject(filePath: string): unknown;
/**
 * FHIR resource as a raw JSON object.
 */
export type FhirResourceObject = Record<string, unknown> & {
    resourceType: string;
};
/**
 * Read a file and return it as a raw FHIR resource object.
 * Validates that the object has a resourceType field.
 */
export declare function readFhirResource(filePath: string): FhirResourceObject;
/**
 * Write content to a file, creating directories as needed.
 */
export declare function writeOutputFile(filePath: string, content: string): void;
//# sourceMappingURL=loader.d.ts.map