@wastedondestiny/destiny-library 1.4.11 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ import { GoogleManager } from '../types';
2
+ /**
3
+ * Checks if Google's window.adsbygoogle object is available
4
+ * @param timeout Timeout before giving up in milliseconds
5
+ * @param interval Interval between each check in milliseconds
6
+ * @returns {GoogleManager} An object containing:
7
+ * - isReady: A ref boolean indicating if ramp is ready
8
+ * - error: A ref Error object if an error occurred
9
+ * - waitForGoogle: A function that returns a Promise resolving with window.adsbygoogle when available
10
+ * - getGoogle: A function that returns a Promise resolving with window.adsbygoogle, waiting if necessary
11
+ */
12
+ export declare function useGoogle(timeout?: number, interval?: number): GoogleManager;
@@ -1,9 +1,14 @@
1
- import { Ramp } from '../types';
2
- export declare function usePlaywire(timeout?: number, interval?: number): {
3
- isReady: import("vue").Ref<boolean, boolean>;
4
- error: import("vue").Ref<Error | undefined, Error | undefined>;
5
- waitForRamp: () => Promise<Ramp>;
6
- getRamp: () => Promise<Ramp>;
7
- };
1
+ import { PlaywireManager } from '../types';
2
+ /**
3
+ * Checks if Playwire's window.ramp object is available
4
+ * @param timeout Timeout before giving up in milliseconds
5
+ * @param interval Interval between each check in milliseconds
6
+ * @returns {PlaywireManager} An object containing:
7
+ * - isReady: A ref boolean indicating if ramp is ready
8
+ * - error: A ref Error object if an error occurred
9
+ * - waitForRamp: A function that returns a Promise resolving with window.ramp when available
10
+ * - getRamp: A function that returns a Promise resolving with window.ramp, waiting if necessary
11
+ */
12
+ export declare function usePlaywire(timeout?: number, interval?: number): PlaywireManager;
8
13
  export declare function addPlaywireUnit(type: string, selectorId?: string): void;
9
14
  export declare function destroyPlaywireUnits(selector?: string | string[]): void;