2023-07-03 22:32:41 +00:00
|
|
|
export interface StyleOptions {
|
|
|
|
document?: HTMLElement;
|
|
|
|
immediate?: boolean;
|
|
|
|
manual?: boolean;
|
|
|
|
name?: string;
|
|
|
|
id?: string;
|
|
|
|
media?: string;
|
2023-08-11 01:34:02 +00:00
|
|
|
nonce?: string;
|
2023-10-02 10:46:09 +00:00
|
|
|
props?: any;
|
2023-07-03 22:32:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare function useStyle(
|
|
|
|
css: string,
|
|
|
|
options?: StyleOptions
|
|
|
|
): {
|
|
|
|
id: string;
|
2023-07-12 09:19:35 +00:00
|
|
|
name: string;
|
2023-07-03 22:32:41 +00:00
|
|
|
css: any;
|
|
|
|
unload: () => void;
|
2023-10-02 10:46:09 +00:00
|
|
|
load: (css?: string, props?: any) => void;
|
2023-07-03 22:32:41 +00:00
|
|
|
isLoaded: boolean;
|
|
|
|
};
|