UNPKG

@thi.ng/imago

Version:

JSON & API-based declarative and extensible image processing trees/pipelines

87 lines 3.36 kB
import type { BlurSpec, ColorLayer, CompLayer, CompSpec, CropSpec, DitherSpec, EXIFSpec, ExtendSpec, GammaSpec, GrayscaleSpec, HSBLSpec, ICCSpec, ImgLayer, NestSpec, OutputSpec, ProcSpec, RawLayer, ResizeSpec, RotateSpec, SVGLayer, TextLayer } from "./api.js"; /** @internal */ export declare const defSpec: <T extends ProcSpec>(op: T["op"]) => (opts: Omit<T, "op">) => T; /** @internal */ export declare const defLayerSpec: <T extends CompLayer>(type: T["type"]) => (opts: Omit<T, "op">) => T; /** * Creates a new {@link BlurSpec} with given opts. */ export declare const blur: (opts: Omit<BlurSpec, "op">) => BlurSpec; /** * Creates a new {@link CompSpec} with given opts. */ export declare const composite: (opts: Omit<CompSpec, "op">) => CompSpec; /** * Creates a new {@link ColorLayer} spec with given opts (for use with * {@link composite} / {@link CompSpec}). */ export declare const colorLayer: (opts: Omit<ColorLayer, "op">) => ColorLayer; /** * Creates a new {@link ImgLayer} spec with given opts (for use with * {@link composite} / {@link CompSpec}). */ export declare const imageLayer: (opts: Omit<ImgLayer, "op">) => ImgLayer; /** * Creates a new {@link RawLayer} spec with given opts (for use with * {@link composite} / {@link CompSpec}). */ export declare const rawLayer: (opts: Omit<RawLayer, "op">) => RawLayer; /** * Creates a new {@link SVGLayer} spec with given opts (for use with * {@link composite} / {@link CompSpec}). */ export declare const svgLayer: (opts: Omit<SVGLayer, "op">) => SVGLayer; /** * Creates a new {@link TextLayer} spec with given opts (for use with * {@link composite} / {@link CompSpec}). */ export declare const textLayer: (opts: Omit<TextLayer, "op">) => TextLayer; /** * Creates a new {@link CompSpec} with given opts. */ export declare const crop: (opts: Omit<CropSpec, "op">) => CropSpec; /** * Creates a new {@link DitherSpec} with given opts. */ export declare const dither: (opts: Omit<DitherSpec, "op">) => DitherSpec; /** * Creates a new {@link EXIFSpec} with given opts. */ export declare const exif: (opts: Omit<EXIFSpec, "op">) => EXIFSpec; /** * Creates a new {@link ExtendSpec} with given opts. */ export declare const extend: (opts: Omit<ExtendSpec, "op">) => ExtendSpec; /** * Creates a new {@link GammaSpec} with given opts. */ export declare const gamma: (opts: Omit<GammaSpec, "op">) => GammaSpec; /** * Creates a new {@link GrayscaleSpec} with given opts. */ export declare const grayscale: (opts: Omit<GrayscaleSpec, "op">) => GrayscaleSpec; /** * Creates a new {@link HSBLSpec} with given opts. */ export declare const hsbl: (opts: Omit<HSBLSpec, "op">) => HSBLSpec; /** * Creates a new {@link ICCSpec} with given opts. */ export declare const icc: (opts: Omit<ICCSpec, "op">) => ICCSpec; /** * Creates a new {@link NestSpec} with given opts. */ export declare const nest: (opts: Omit<NestSpec, "op">) => NestSpec; /** * Creates a new {@link OutputSpec} with given opts. */ export declare const output: (opts: Omit<OutputSpec, "op">) => OutputSpec; /** * Creates a new {@link ResizeSpec} with given opts. */ export declare const resize: (opts: Omit<ResizeSpec, "op">) => ResizeSpec; /** * Creates a new {@link RotateSpec} with given opts. */ export declare const rotate: (opts: Omit<RotateSpec, "op">) => RotateSpec; //# sourceMappingURL=ops.d.ts.map