@crossed/styled
Version:
A universal & performant styling library for React Native, Next.js & React
16 lines • 870 B
TypeScript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
import { AllAvailableStyles, CrossedMethods } from './types';
export type ExtractStyle<S extends CrossedMethods<any>> = S extends CrossedMethods<infer D, any> ? D : never;
export declare const composeStyles: <T extends (CrossedMethods<any> | AllAvailableStyles | false | void | null)[], P extends Exclude<T[number], false | void | AllAvailableStyles>>(...styles: T) => {
original: Function | Record<string, any>;
stylesParent: Record<string, any>;
style: (props?: import("./types").CrossedPropsExtended) => any;
className: (props?: import("./types").CrossedPropsExtended) => any;
rnw: (props?: import("./types").CrossedPropsExtended) => any;
};
//# sourceMappingURL=composeStyles.d.ts.map