/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { DatabaseReference } from '../Config/Config.types.js'; import type { IHttpClient, ILogger } from '../services/index.js'; import type { LazyParam } from '../Types/ActionTypes.js'; export declare function isEnvironmentVariable(parameter: string | undefined): boolean; export declare function getEnvironmentVariableName(parameter: string | undefined): string | undefined; export declare function resolveEnvironmentVariable(parameter: string | undefined, httpClient: IHttpClient, orgUrl: string | undefined, logger: ILogger): Promise; /** * Retrieves the Dataverse organization URL for the current environment based on the linked environment metadata. * @param powerConfigPath The path to the power configuration file. * @returns The Dataverse organization URL or undefined if not found. */ export declare function getDataverseOrgUrl(powerConfigPath: string): Promise; /** * Retrieves the Dataverse organization URL for the given environment name (environment ID GUID). * @param environmentName The environment ID GUID (from BaseActionContext.environmentName). * @returns The Dataverse organization URL. * @throws If the environment does not have a linked Dataverse instance. */ export declare function getDataverseOrgUrlByEnvironmentName(environmentName: string): Promise; /** * Helper function to normalize lazy parameters. * Handles both direct string values and deferred functions that return Promise. * @param value - The value to normalize (string, function, or undefined/null) * @returns The resolved value if it's not an empty string, otherwise undefined */ export declare function normalizeParam(value: LazyParam | undefined | null): Promise; /** * Resolves a user-supplied Dataverse data source identifier to the actual key stored in * `power.config.json`. * * Data sources are keyed by a sanitized display name (e.g. `contacts`), but users typically know * the logical name they passed to `--table` (e.g. `contact`) or the entity set name. This matches * the supplied name case-insensitively against the stored key, `logicalName`, and `entitySetName`, * so `remove`/`refresh` accept any of them. The current-environment sentinel is never a valid * target and is skipped. * @param databaseReferences - The `databaseReferences` map from the repo config. * @param name - The user-supplied data source name (logical name, entity set name, or stored key). * @returns The stored data source key, or undefined if no match is found. */ export declare function resolveDataverseDataSourceKey(databaseReferences: Record | undefined, name: string): string | undefined; //# sourceMappingURL=DataUtils.d.ts.map