123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- import Container, {
- ContainerProps,
- ContainerWithChildren
- } from './container.js'
-
- declare namespace AtRule {
- export interface AtRuleRaws extends Record<string, unknown> {
-
-
- after?: string
-
-
-
- afterName?: string
-
-
-
- before?: string
-
-
-
- between?: string
-
-
-
- params?: {
- raw: string
- value: string
- }
-
-
-
- semicolon?: boolean
- }
-
- export interface AtRuleProps extends ContainerProps {
-
- name: string
-
- params?: number | string
-
- raws?: AtRuleRaws
- }
-
-
- export { AtRule_ as default }
- }
-
-
- declare class AtRule_ extends Container {
-
-
- nodes: Container['nodes']
- parent: ContainerWithChildren | undefined
-
- raws: AtRule.AtRuleRaws
- type: 'atrule'
- constructor(defaults?: AtRule.AtRuleProps)
- assign(overrides: AtRule.AtRuleProps | object): this
-
- clone(overrides?: Partial<AtRule.AtRuleProps>): this
-
- cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
-
- cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
- /**
- * The at-rule’s name immediately follows the `@`.
- *
- * ```js
- * const root = postcss.parse('@media print {}')
- * const media = root.first
- * media.name //=> 'media'
- * ```
- */
- get name(): string
- set name(value: string)
- /**
- * The at-rule’s parameters, the values that follow the at-rule’s name
- * but precede any `{}` block.
- *
- * ```js
- * const root = postcss.parse('@media print, screen {}')
- * const media = root.first
- * media.params
- * ```
- */
- get params(): string
- set params(value: string)
- }
-
- declare class AtRule extends AtRule_ {}
-
- export = AtRule
|