import * as postcss from 'postcss'; import { ImportList } from './import-list'; import { AnyNode, Node, NodeProps } from './node'; import * as sassInternal from './sass-internal'; import { RawWithValue } from './raw-with-value'; import { AnyStatement } from './statement'; /** * The set of raws supported by {@link DynamicImport}. * * @category Statement */ export interface DynamicImportRaws { /** * The whitespace before {@link DynamicImport.url}. */ before?: string; /** The text of the string used to write {@link DynamicImport.url}. */ url?: RawWithValue; /** * The space symbols between the end of {@link DynamicImport.url} and the * comma afterwards. Always empty for a URL that doesn't have a trailing * comma. */ after?: string; } /** * The properties for {@link DynamicImport} that are passed as an object. * * @category Statement */ export type DynamicImportObjectProps = NodeProps & { raws?: DynamicImportRaws; url: string; }; /** * The initializer properties for {@link DynamicImport}. * * @category Statement */ export type DynamicImportProps = string | DynamicImportObjectProps; /** * A single URL passed to an `@import` rule that's treated as a dynamic Sass * load rather than a plain-CSS `@import` rule. This is always included in an * {@link ImportRule}. * * @category Statement */ export declare class DynamicImport extends Node { readonly sassType: "dynamic-import"; raws: DynamicImportRaws; parent: ImportList | undefined; /** The URL of the stylesheet to load. */ url: string; constructor(defaults: DynamicImportProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.DynamicImport); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray>; }