import { resources } from './aws-resources';
import { BuiltIns } from './cloudformation';
import { TemplateBuilder } from './template/template-builder';
type AwsServiceList = (typeof resources)['aws'];
export type AwsServices = keyof AwsServiceList;
export type AWSResourcesFor<S extends AwsServices> = {
    [k in S]: Get<(typeof resources)['aws'][k]>;
} & BuiltIns;
declare class Builder<AWS> {
    private readonly aws;
    constructor(aws: AWS);
    create(outputFileName?: string, parametersFileName?: string): TemplateBuilder<AWS, {}>;
}
type Get<T extends {
    [key: string]: {
        load: () => Promise<any>;
    };
}> = {
    [K in keyof T]: T[K]['load'] extends () => Promise<infer R> ? R : never;
};
export declare class AwsLoader<AWS> {
    aws: {};
    private promises;
    private constructor();
    private add;
    register<S extends AwsServices[]>(...service: S): AwsLoader<BuiltIns & AWS & AWSResourcesFor<S[number]>>;
    static register<S extends AwsServices[]>(...resource: S): AwsLoader<BuiltIns & {
        [k in S[number]]: Get<(typeof resources)['aws'][k]>;
    }>;
    load(): Promise<Builder<AWS>>;
}
export {};
