svelte-search-engine
Version:
A wrapper for Google's Programmable Search Engine, providing a Svelte-friendly interface.
10 lines (9 loc) • 596 B
TypeScript
import type { WithGname } from './types';
import type { UIComponents } from '../types/components';
import type { ComponentAttributes } from '../types/google';
export declare function assert(condition: unknown, msg?: string): asserts condition;
export declare const randomString: () => string;
export declare function buildParams(baseTag: 'searchbox' | 'searchresults', only: boolean, attributes: ComponentAttributes & WithGname, components?: UIComponents): {
id: string;
param: import("./types").ParamObject | [import("./types").ParamConf, import("./types").ParamOptConf] | undefined;
};