UNPKG

@wix/design-system

Version:

@wix/design-system

20 lines 1.06 kB
import { UniDriver } from '@wix/unidriver-core'; export declare const codeSnippetPrivateDriverFactory: (base: UniDriver, body?: UniDriver) => { /** Presses a key on the snippet root (e.g. Enter/Space to copy the inline variant). */ pressKey: (key: string) => Promise<void>; /** The copy button's `aria-describedby`, used to associate it with the code block. */ getCopyButtonDescribedBy: () => Promise<string | null>; /** The code element's `id`, referenced by the copy button's `aria-describedby`. */ getCodeId: () => Promise<string | null>; exists: () => Promise<boolean>; element: () => Promise<any>; click: () => Promise<void>; base: UniDriver; getCode: () => Promise<string>; isCopyable: () => Promise<boolean>; copyContent: () => Promise<void>; getCopyButtonAriaLabel: () => Promise<string | null>; getAriaLabel: () => Promise<string | null>; }; export type CodeSnippetPrivateDriver = ReturnType<typeof codeSnippetPrivateDriverFactory>; //# sourceMappingURL=CodeSnippet.private.uni.driver.d.ts.map