/** * Parsed ARM resource ID components. */ export interface ParsedResourceId { subscriptionId: string; resourceGroup: string; provider: string; resourceType: string; resourceName: string; parentType?: string; parentName?: string; fullResourceType: string; } /** * Parse an ARM resource ID into its components. * * Example resource IDs: * - /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{name} * - /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{name}/functions/{fn} * - /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Sql/servers/{name}/databases/{db} */ export declare function parseResourceId(resourceId: string): ParsedResourceId | null; /** * Build an ARM resource ID from components. */ export declare function buildResourceId(subscriptionId: string, resourceGroup: string, provider: string, resourceType: string, resourceName: string, parentType?: string, parentName?: string): string; /** * Extract resource group from a resource ID. */ export declare function extractResourceGroup(resourceId: string): string | null; /** * Extract subscription ID from a resource ID. */ export declare function extractSubscriptionId(resourceId: string): string | null; //# sourceMappingURL=resource-id-parser.d.ts.map