import type * as Stream from 'stream'; import type { BalenaYml } from './build-secrets'; import type { RegistrySecrets } from './registry-secrets'; export declare const QEMU_BIN_NAME = "qemu-execve"; export declare class BuildMetadata { protected metadataDirectories: string[]; registrySecrets: RegistrySecrets; protected metadataFiles: Record; protected balenaYml: BalenaYml; constructor(metadataDirectories: string[]); extractMetadata(tarStream: Stream.Readable): Stream.Readable; getBalenaYml(): BalenaYml; getSecretFile(source: string): Buffer | undefined; parseMetadata(): void; getBuildVarsForService(serviceName: string): Record; protected parseRegistrySecrets(): void; protected addMetadataFile(name: string, data: Buffer): void; protected getMetadataRelativePath(path: string): { relativePath: string; metadataDirectory: string; } | undefined; } export default BuildMetadata;