import { PluginClosure } from '../plugins/types.js'; import { PerfPayload } from '../utils/perf.js'; import { AllRequests, SettingsOptions, RequestObject, TUserHelpers } from '../utils/types.js'; interface FullShortcodeResponse { html?: string; css?: string; js?: string; head?: string; } export declare type ShortcodeResponse = FullShortcodeResponse | string | Promise | Promise; export interface ShortcodeDefinition { shortcode: string; run: (payload: { perf: PerfPayload; props: Record; content?: string; plugin?: PluginClosure; data: any; query: any; request: RequestObject; helpers: TUserHelpers; settings: SettingsOptions; allRequests: AllRequests; }) => ShortcodeResponse; plugin?: PluginClosure; $$meta?: { addedBy: string; type: string; }; } export declare type ShortcodeDefinitions = Array; export {};