import * as postcss from 'postcss'; import { ImportList } from './import-list'; import { Interpolation, InterpolationProps } from './interpolation'; import { Node, NodeProps } from './node'; import * as sassInternal from './sass-internal'; /** * The set of raws supported by {@link StaticImport}. * * @category Statement */ export interface StaticImportRaws { /** * The whitespace before {@link StaticImport.staticUrl}. */ before?: string; /** * The whitespace between {@link StaticImport.staticUrl} and {@link * StaticImport.modifiers}. Always empty if `modifiers` is undefined. */ between?: string; /** * The space symbols between {@link StaticImport.modifiers} (if it's defined) * or {@link StaticImport.staticUrl} (otherwise) URL and the comma afterwards. * Always empty for a URL that doesn't have a trailing comma. */ after?: string; } /** * The initializer properties for {@link StaticImport}. * * @category Statement */ export type StaticImportProps = NodeProps & { raws?: StaticImportRaws; staticUrl: InterpolationProps; modifiers?: InterpolationProps; }; /** * A single URL passed to an `@import` rule that's treated as a plain-CSS * `@import` rather than a dynamic Sass load. This is always included in an * {@link ImportRule}. * * @category Statement */ export declare class StaticImport extends Node { readonly sassType: "static-import"; raws: StaticImportRaws; parent: ImportList | undefined; /** The URL of the imported stylesheet. */ get staticUrl(): Interpolation; set staticUrl(value: Interpolation | InterpolationProps); private _staticUrl?; /** * The additional modifiers, like media queries and `supports()`, attached to * this import. */ get modifiers(): Interpolation | undefined; set modifiers(value: Interpolation | InterpolationProps | undefined); private _modifiers?; constructor(defaults: string | StaticImportProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.StaticImport); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray; }