import type { Component } from "svelte"; import * as Types from "./types"; import { type ClassValue } from "clsx"; export declare function cn(...inputs: ClassValue[]): string; export declare function replaceLibImport(componentString: string | undefined, libraryName: string): string; export declare function copyToClipboard(text: string): Promise; export declare function clickToCopy(node: HTMLElement, target: string): { destroy(): void; }; export declare function toDashCaseLower(text: string): string; export declare function toUpperSnakeCase(text: string): string; /** * Extracts information from an HTMLElement to create a LinkType object. * * @param {HTMLElement} x - The HTMLElement from which to extract information. * @return {LinkType} The extracted information as a LinkType object. */ export declare function extract(x: HTMLElement): Types.LinkType; /** * Removes hyphens from a string and capitalizes each word. * * @param {string} str - the input string * @return {string} the formatted string with hyphens removed and words capitalized */ export declare function removeHyphensAndCapitalize(str: string): string; export declare function filterIconsByKeyword(icons: { [key: string]: any; }, keyword: string): { [key: string]: any; }; export declare function convertToKebabCase(str: string): string; /** * Filters out keys in the object that are not strings. * to filter out index.js since it has [Symbol(Symbol.toStringTag)]: 'Module' * Use this where you don't use other filters * @example * import type { Component } from 'svelte'; * import * as icons from '../supertiny-samples' * import { filterStringKeys } from './' * const keyIcons = filterStringKeys(icons); * * * @param {object} obj - The object to filter string keys from. * @return {object} A new object with only the string keys. */ export declare const filterStringKeys: (obj: Record) => Record; /** * Exclude items from the input object based on the provided keywords. * * @param {object} items - The input object containing key-value pairs. * @param {string} keywords - The keywords to exclude items by. * @return {object} The filtered object after excluding items based on the keywords. */ export declare function excludeItemsByKeywords(items: Record, keywords: string): Record; /** * Generates a random tailwind color class string. * * @return {string} The generated tailwind color class string. */ export declare const random_tailwind_color: () => string; /** * Generate three random numbers within a specific range (e.g., 30-230) for RGB values * * @return {string} The randomly generated hex color code. */ export declare const random_hex_color_code: () => string; /** * Filters an array of objects by their titles. * * @param {CardType[]} objects - The array of objects to filter. * @param {Title[]} titles - The titles to filter by. * @return {CardType[]} The filtered array of objects. */ export declare function filterByTitles(objects: Types.CardType[], titles: Types.Title[]): Types.CardType[]; /** * Filters out objects based on their title. * * @param {CardType[]} objects - array of Card objects to filter * @param {Title[]} titles - array of Titles to exclude by * @return {CardType[]} filtered array of Card objects */ export declare function excludeByTitle(objects: Types.CardType[], titles: Types.Title[]): Types.CardType[]; /** * Insert a new object into an array at a specified position. * * @param {CardType[]} array - the original array * @param {Card} objectToInsert - the object to insert into the array * @param {number} position - the position where the object should be inserted * @return {any[]} the updated array with the object inserted at the specified position */ export declare function insertObjectToArray(array: Types.CardType[], objectToInsert: Types.CardType, position: number): Types.CardType[]; interface CardTpye { title: string; description: string; Icon: Component; icon_class: string; } export declare const cards: CardTpye[]; interface InfoType { title: string; description: string; Icon: Component; href: string; icon_class: string; } export declare const info: InfoType[]; export declare const sidebarList: Types.ListType[]; export declare function getExampleFileName(selectedExample: string, exampleArr: { name: string; }[]): string; export declare const isGeneratedCodeOverflow: (code: string) => boolean; export declare const isSvelteOverflow: (sveltefile: string, exampleModules: Record) => boolean; export declare function replacev1xx(string: string, v1version: string): string; export {};