/** * @license * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { ExecuteQueryOptions } from '../api'; import { ConnectorConfig, DataConnect } from '../api/DataConnect'; interface ParsedArgs { dc: DataConnect; vars: Variables; options?: ExecuteQueryOptions; } /** * The generated SDK will allow the user to pass in either the variables or the data connect instance * with the variables. This function validates the variables and returns back the DataConnect instance * and variables based on the arguments passed in. * * Generated SDKs generated from versions 3.2.0 and lower of the Data Connect emulator binary are * NOT concerned with options, and will use this function to validate arguments. * * @param connectorConfig * @param dcOrVars * @param vars * @param variablesRequired * @returns {DataConnect} and {Variables} instance * @internal */ export declare function validateArgs(connectorConfig: ConnectorConfig, dcOrVars?: DataConnect | Variables, vars?: Variables, variablesRequired?: boolean): ParsedArgs; /** * The generated SDK will allow the user to pass in either the variables or the data connect instance * with the variables, and/or options. This function validates the variables and returns back the * DataConnect instance and variables, and potentially options, based on the arguments passed in. * * Generated SDKs generated from versions 3.2.0 and higher of the Data Connect emulator binary are * in fact concerned with options, and will use this function to validate arguments. * * @param connectorConfig * @param dcOrVarsOrOptions * @param varsOrOptions * @param variablesRequired * @param options * @returns {DataConnect} and {Variables} instance, and optionally {ExecuteQueryOptions} * @internal */ export declare function validateArgsWithOptions(connectorConfig: ConnectorConfig, dcOrVarsOrOptions?: DataConnect | Variables | ExecuteQueryOptions, varsOrOptions?: Variables | ExecuteQueryOptions, options?: ExecuteQueryOptions, hasVars?: boolean, variablesRequired?: boolean): ParsedArgs; export {};