export type JSONValue = string | number | boolean | null | JSONArray | JSONObject;
export interface JSONObject {
    [key: string]: JSONValue;
}
export interface JSONArray extends Array<JSONValue> {
}
export declare function validateBindingName(name: string): string | undefined;
export declare function updateJSON(filePath: string, mutator: (json: JSONObject) => JSONObject): void;
export declare function extractFirstBlock(toml: string, header: string): {
    block: string;
    start: number;
    end: number;
} | null;
export declare function updateD1Block(toml: string, binding: string, dbName: string): string;
export declare function appendOrReplaceKvNamespaceBlock(toml: string, binding: string, id?: string): string;
export declare function appendOrReplaceR2Block(toml: string, binding: string, bucketName: string): string;
export declare function appendOrReplaceHyperdriveBlock(toml: string, binding: string, id?: string, database?: "hyperdrive-postgres" | "hyperdrive-mysql", connectionString?: string): string;
export interface DatabaseConfig {
    type: "d1" | "hyperdrive";
    binding: string;
    name?: string;
    id?: string;
}
export declare function parseWranglerToml(tomlContent: string): {
    databases: DatabaseConfig[];
    hasMultipleDatabases: boolean;
};
export declare function extractD1DatabaseId(wranglerOutput: string): string | null;
export declare function extractKvNamespaceId(wranglerOutput: string): string | null;
export declare function extractHyperdriveId(wranglerOutput: string): string | null;
export declare function updateD1BlockWithId(toml: string, binding: string, dbName: string, databaseId: string): string;
export declare function updateKvBlockWithId(toml: string, binding: string, namespaceId: string): string;
export declare function updateHyperdriveBlockWithId(toml: string, binding: string, hyperdriveId: string, connectionString?: string): string;
export interface GitInitResult {
    success: boolean;
    error?: string;
}
export declare function initializeGitRepository(projectPath: string): GitInitResult;
//# sourceMappingURL=helpers.d.ts.map