import { SvelteComponentTyped, type ComponentConstructorOptions } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type SpacingScale = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13; export type SpacingValue = SpacingScale | string; type $RestProps = NoInfer; type $Elements = { [$Tag in keyof HTMLElementTagNameMap]: Omit<$RestProps<$Tag>, keyof $Props<$Tag>> }; type $Props = { /** * Set a negative margin on the left and right edges. Numbers `1`–`13` use the shared layout scale, cancelling `Box`'s `paddingX` at the same step; strings accept any CSS length. Overridden per side by `left`/`right`. */ horizontal?: SpacingValue | undefined; /** * Set a negative margin on the top and bottom edges. Numbers `1`–`13` use the shared layout scale, cancelling `Box`'s `paddingY` at the same step; strings accept any CSS length. Overridden per side by `top`/`bottom`. */ vertical?: SpacingValue | undefined; /** * Set a negative margin on the top edge only, overriding `vertical`. */ top?: 0 | SpacingValue | undefined; /** * Set a negative margin on the right edge only, overriding `horizontal`. */ right?: 0 | SpacingValue | undefined; /** * Set a negative margin on the bottom edge only, overriding `vertical`. */ bottom?: 0 | SpacingValue | undefined; /** * Set a negative margin on the left edge only, overriding `horizontal`. */ left?: 0 | SpacingValue | undefined; /** * Specify the tag name. * @default "div" */ tag?: Tag; /** * Obtain a reference to the HTML element. * @default null */ ref?: null | HTMLElementTagNameMap[Tag]; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type BleedProps = $Elements[Tag] & $Props; export default class Bleed extends SvelteComponentTyped< BleedProps, Record, { default: Record } > { constructor(options: ComponentConstructorOptions>); }