export type WranglerD1DatabaseConfig = {
    binding?: string;
    database_name?: string;
    database_id?: string;
    migrations_dir?: string;
};
export type WranglerD1ResolutionMatch = 'database_name' | 'binding' | 'single-configured';
export type WranglerD1DatabaseResolution = {
    status: 'resolved';
    target?: string;
    config: WranglerD1DatabaseConfig;
    matchedBy: WranglerD1ResolutionMatch;
    configured: WranglerD1DatabaseConfig[];
    matches: WranglerD1DatabaseConfig[];
} | {
    status: 'ambiguous';
    target?: string;
    matchedBy: 'database_name' | 'binding' | 'multiple-configured';
    configured: WranglerD1DatabaseConfig[];
    matches: WranglerD1DatabaseConfig[];
} | {
    status: 'missing';
    target?: string;
    configured: WranglerD1DatabaseConfig[];
    matches: WranglerD1DatabaseConfig[];
};
export declare const WranglerConfig: Readonly<{
    getD1Databases(projectRoot: string): WranglerD1DatabaseConfig[];
    getD1Database(projectRoot: string, target?: string): WranglerD1DatabaseConfig | undefined;
    resolveD1Database(projectRoot: string, target?: string): WranglerD1DatabaseResolution;
    getDefaultD1Database(projectRoot: string): WranglerD1DatabaseConfig | undefined;
    getDefaultD1DatabaseName(projectRoot: string): string | undefined;
    getD1MigrationsDir(projectRoot: string, dbName?: string): string;
}>;
//# sourceMappingURL=WranglerConfig.d.ts.map