import { PaperTextureOptions, PathCmd, PathStyle, Surface } from "../types.js"; //#region src/surfaces/svg.d.ts interface SVGSurfaceOptions { width?: number; height?: number; background?: string | null; precision?: number; paper?: boolean; } declare class SVGSurface implements Surface { width: number; height: number; precision: number; out: string[]; defs: string[]; private _clipId; private _bg; private _paper; private _grain; constructor({ width, height, background, precision, paper }?: SVGSurfaceOptions); path(cmds: PathCmd[], style: PathStyle): void; clip(cmds: PathCmd[], fn: () => void): void; rect(x: number, y: number, w: number, h: number, style: PathStyle): void; group(transform: string, fn: () => void): void; background(color: string): void; /** Aged-paper grain, done with a filter so the file stays tiny. */ paperTexture(opts?: PaperTextureOptions): void; toString(): string; } //#endregion export { SVGSurface, SVGSurface as default, SVGSurfaceOptions };