/** * A copy button on every block of code. * * Nothing in sdocs could be copied before this: not the fences in `[DOC]` * prose, not the Explorer's own Code / Preview Code / Component Source panels. * Both are the same shape — a `
` inside a container the component fills
 * with `{@html}` — so one attachment covers them, walking the DOM rather than
 * taking the text as a prop.
 *
 * The button is revealed on hover, matching the width bar, the height bar and
 * the note corner button, and on focus, so it is reachable without a pointer.
 */
import type { Attachment } from 'svelte/attachments';
/**
 * Attach a copy button to every `
` under the element.
 *
 * Re-runs whenever the rendered HTML changes: `{@html}` replaces the children
 * wholesale, so buttons from a previous render are gone with them and each new
 * `
` needs its own.
 */
export declare function copyCode(): Attachment;