/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/platformResourceLoader` component loads resources from the Salesforce platform. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-platform-resource-loader/documentation | Lightning Platform Resource Loader Documentation} */ declare module "lightning/platformResourceLoader" { import { LightningElement } from "lwc"; /** * Utility function to load a CSS file via a link tag. * @param self The current component. Stylesheets are added in the component markup. * @param url The path to the CSS file. * @returns A promise resolved once the CSS file has been loaded. */ export function loadStyle(self: LightningElement, url: string): Promise; /** * Utility function to load a JS file via a script tag. * @param self The current component. Scripts are added to the head section of the document. * @param url The path to the JS file. * @returns A promise resolved once the JS file has been loaded. */ export function loadScript( self: LightningElement, url: string, ): Promise; }