import { type ShaderName, type ShaderParams } from "./registry.js"; /** * Only the values that differ from the registry defaults. Exported snippets * stay short, and a shader's defaults can improve later without silently * changing anyone's pinned look. */ export declare function diffParams(name: K, params: ShaderParams): Record; export interface SnippetOptions { /** * Whether the reader has to keep the credit — true for a Free shader taken * without paying, which is the only case worth a notice in the file. * * Defaults to true, the same way round as the LICENSE the registry picks: * the worst a mistake here can do is tell someone who paid about a condition * that does not bind them. */ readonly creditRequired?: boolean; } /** A `shader.config.ts` module: the tuned preset, typed against the registry. */ export declare function toConfigSource(name: K, params: ShaderParams, options?: SnippetOptions): string; /** A drop-in React usage snippet for the current settings. */ export declare function toReactSource(name: K, params: ShaderParams, options?: SnippetOptions): string; /** The imperative form, for codebases that are not React. */ export declare function toVanillaSource(name: K, params: ShaderParams, options?: SnippetOptions): string; /** The complete, self-contained WGSL for this shader. */ export declare function toWgslSource(name: K): string; export declare function toInstallCommand(name: K): string; /** A paste-ready component wired with the tuned parameters. */ export declare function toExampleSource(name: K, params: ShaderParams, options?: SnippetOptions): string; /** * Per-shader documentation, generated from the registry rather than written by * hand — the control table cannot drift out of date with the shader. */ export declare function toReadme(name: K, params: ShaderParams): string; export interface LicenceHolder { readonly name?: string; readonly order?: string; } /** * The licence that ships with a Free shader, taken by anyone, unpaid. * * The obligation it carries — leave the credit on — is stated here and nowhere * else. `setBadge(false)` is one call and always will be: a check inside a * bundle the holder can edit would stop nobody and would break the promise that * the runtime never phones home. The terms are what bind; the code is not. * * Kept in step with the /license page, which is the full version of the same * grant. Change one and change the other. */ export declare function toFreeLicense(name: K): string; /** * The licence that ships with a purchased shader, issued to the buyer. * * Kept in step with the /license page, which is the full version of the same * grant. Change one and change the other. */ export declare function toLicense(name: K, holder?: LicenceHolder): string; //# sourceMappingURL=export.d.ts.map