@harboor/core
Version:
20 lines (17 loc) • 852 B
text/typescript
declare function pathv(relativePath: string): string;
declare function hasPathvCalls(content: string): boolean;
declare function processPathvCalls(content: string, fileAbsPath: string, sourceRelativePath: string, distRelativePath: string): Promise<string>;
type DumpArgs = {
aws: {
credentials: {
region: string;
accessKey: string;
accessKeySecret: string;
};
secretName: string;
};
dest?: string;
};
declare function fetchSecretsAws<E extends Record<string, string | number | boolean>>({ aws, dest }: DumpArgs): Promise<any>;
declare function resolveReferencesRecursive(secrets: Record<string, string>, hadAtLeastOneReference?: boolean): Record<string, string>;
export { fetchSecretsAws, hasPathvCalls, pathv, processPathvCalls, resolveReferencesRecursive as resolveSecrets };